You can use the print(), printPreview()
methods in the RCP browser to provide print support for Web pages.
UI is the same as the back-end browser it is based on. And the printPreview
window is also the same as Internet Explorer if you are using a IE_SERVICE
service type RCP Browser on Windows®. When using printPreview
on a Web page with a XULRUNNER_SERVICE
type RCP Browser, the Print Preview page loads in the current browser window. You must invoke the printPreview()
method again to exit the Print Preview page.
Implementing these methods is a simple process. Create a browser and directly invoke the methods after a Web page completes loading.
Parent topic: Using and enhancing an RCP Browser: XPD622