My apologies if this is something obvious that I have missed – strange enough a quick google and SO-Search revealed nothing:
I am using an SWT-Browser widget within an Eclipse-RCP view to show local HTML-Content. How can I print it?
Yes I know I can right-click into the window and select print, but I need something more user-friendly like a “Print”-Button the user can click.
There is no print()-Method for the widget, so how can I call the context-menu “print” or bring up the printing-dialog otherwise?
You can use javascript to print the contents of the window.