Question:
Hi,
I want to place an object of class CL_GUI_HTML_VIEWER on my screen and want to control printing from my own app. I know that I can start printing using the Method EXECWB with a command option. But this will show me a popup to select a printer, the number of prints and so on.
Does anyone know how to avoid this popup? When inheriting a class from CL_GUI_HTML_VIEWER I can also execute a java script. But unfortunately I am not so familiar with java.
I would highly appreciate any suggestion.
Regards and thanks in advance
Kai
Answer:
Place a button on you HTML page and onClick event just call
javascript:window.print()
<input type="button" value="Button" name="B" onClick="javascript:window.print()">
Regards
Raja