Page 1 of 1

WebHelp Print Preview Issue

Posted: Tue Aug 16, 2016 12:57 am
by kmank
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?

Re: WebHelp Print Preview Issue

Posted: Tue Aug 16, 2016 4:34 pm
by bogdan_cercelaru
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

Re: WebHelp Print Preview Issue

Posted: Tue Aug 16, 2016 5:04 pm
by kmank
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!

Re: WebHelp Print Preview Issue

Posted: Wed Aug 17, 2016 10:00 am
by bogdan_cercelaru
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