WebHelp Print Preview Issue

<oXygen/> general issues.
kmank
Posts: 85

WebHelp Print Preview Issue

Tue Aug 16, 2016 12:57 am

Hello,

When transforming to WebHelp (using DITA Map WebHelp in O17.1 or DITA Map WebHelp Classic in O18), the Print Preview function (using the Print icon in the header pane causes the preview and resulting print job to print incorrectly. No paragraphs wrap on the page (they all run off the right side of the page) and if there are multiple pages, only one is included.

However, it appears that the preview shows correctly if the WebHelp is displayed in frames.

I'm not certain how else to describe this or what more needs to be included for the resolution. Any ideas?
bogdan_cercelaru
Posts: 205

Re: WebHelp Print Preview Issue

Tue Aug 16, 2016 4:34 pm

Hello,

I've tested using Oxygen XML Editor v17.1, build 2016032212 and the latest build of Oxygen XML Editor v18.0 but I'm not able to reproduce this issue.
When the Print button is pressed (in Google Chrome) the print preview dialog is displayed and the text wraps correctly and multiple pages are also correctly handled.
Please let us know what build of Oxygen are you using. Is your WebHelp on a Web server or it is accessed as local file? What browser are you using to print the WebHelp pages?

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
kmank
Posts: 85

Re: WebHelp Print Preview Issue

Tue Aug 16, 2016 5:04 pm

Hi Bogdan

Thanks for the reply. The version I am using is 17.1, build 2016032212. All docs are hosted on a web server with Chrome as the venue for Print Preview as IE does not allow this feature.

I will be researching further in different platforms/environments while waiting for a response. If it is our customizations, I need to identify the offending code. (although I would assume a JS code call is fairly straightforward).

Thanks!
bogdan_cercelaru
Posts: 205

Re: WebHelp Print Preview Issue

Wed Aug 17, 2016 10:00 am

Hello,

Please check your "${DITA_OT_DIR}\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\skins\desktop\toc_driver.js" file and look for the following code:

Code: Select all

function printFrame(id) {
    var frm = document.getElementById(id).contentWindow;
    frm.focus();// focus on contentWindow is needed on some ie versions
    frm.print();
    return false;
}

Also, your generated "index.html" file should contain the following HTML element:

Code: Select all

<div id="printlink"><a onclick="printFrame('frm')" title="Print this page"></a></div>


Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests