Answered
Print Button on Drop-Down window
Hello,
our internal customer wants to be able to print topics from a drop-down window.
This worked well with "RoboHelp for Word" and WinHelp output, but I fail to add the same functionality in a "Robohelp for HTML" (R 7) project with HTML Help (CHM) output. In fact the functionality seems to work (Topic is printed correctly), but in the window I immediately get a browser message that the content cannot be diplayed (topic disappears). The same is true for the "Copy" function (content is copied to windows clipboard but error message appears in the window). For the "Close" function the HTML help is minimized to the bottom tray. I added the following snippet
...
<table x-use-null-cells style="background-color: #808080; width: 100%; height: 50px; border-style: 0;"
height=50 width=100% bgcolor=#808080>
<tr><td><implicit_p>
<input type=submit name=button1 value=Print onClick="window.print();">
<input type=submit name=button3 value=Copy onClick="javascript:CopiedTxt = ocument.body.createTextRange();CopiedTxt.execCommand('Copy')">
<input type=submit name=button2 value=Close onClick="window.blur()">
</td></tr>
</table>
.....
What's wrong? Unfortunately I'm not fluent in Javascript :-(
Regards, Pinkepunk
our internal customer wants to be able to print topics from a drop-down window.
This worked well with "RoboHelp for Word" and WinHelp output, but I fail to add the same functionality in a "Robohelp for HTML" (R 7) project with HTML Help (CHM) output. In fact the functionality seems to work (Topic is printed correctly), but in the window I immediately get a browser message that the content cannot be diplayed (topic disappears). The same is true for the "Copy" function (content is copied to windows clipboard but error message appears in the window). For the "Close" function the HTML help is minimized to the bottom tray. I added the following snippet
...
<table x-use-null-cells style="background-color: #808080; width: 100%; height: 50px; border-style: 0;"
height=50 width=100% bgcolor=#808080>
<tr><td><implicit_p>
<input type=submit name=button1 value=Print onClick="window.print();">
<input type=submit name=button3 value=Copy onClick="javascript:CopiedTxt = ocument.body.createTextRange();CopiedTxt.execCommand('Copy')">
<input type=submit name=button2 value=Close onClick="window.blur()">
</td></tr>
</table>
.....
What's wrong? Unfortunately I'm not fluent in Javascript :-(
Regards, Pinkepunk
