ABOUT US

|

SUPPORT

|

BLOG

 PRICING  | DOWNLOADS

 

User    Pass    

 

 

 

 

 

 

 

 

 

 

Features

 

Key Benefits

 

Screenshots

 

Standards Supported

 

Pricing

 

Download Now

 

API Documentation

 

Developers Guide

 

Code Examples

 

Updated Builds

 

Technical Articles

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

Printing documents with WebRenderer

 

 

 

Printing documents with WebRenderer is relatively simple

IBrowserCanvas browser = BrowserFactory.spawnMozilla();
browser.loadURL("http://developer.webrenderer.com");

browser.print(1);

Please note

When printing documents automatically using the print(2) function, it is important to wait for the onDocumentComplete() event from within the Network Listener. This is to ensure the document has loaded fully before printing.

See "Events" for capturing print status events

Close up

browser.print(int) takes int values for the type of printing. If the "print" function is passed the int value "1", a Printer dialog is shown, where the user can select printer specific features, and things such as pages to print and printer to print pages.

browser.print(2);

browser.print(2) prints silently to the default printer. There are no noisy dialog boxes, the printer simply uses underlying default printer settings.

browser.print(2, "myprinter");

browser.print(2, "myprinter") prints silently to a specified printer. The list of available printers can be obtained by the following:

String[] availablePrinters = browser.getPrinterNames();

A String array is returned with the available printers names.

Other options that can be passed to the "print" function include 1 = Do Default, 2 = Dont Prompt (silent), 3 = Show Help.

  top

 

Millions of deployments and counting.. Users of JadeLiquid's tools can be found in every corner of the Earth

 

   News

 

 > Enabling Flash in WebRenderer - Article
 > Browser Zoom Effect using WebRenderer - Article
 > Applet deployment techniques - Article
 > WebRenderer core features on display! - Article
 
 
   Additional News  
 
 > Enabling HTML 5 WebSockets in WebRenderer - Blog
 > 64bit WebRenderer deployment with Web Start - Blog
 > Deploying WebRenderer Server Edition in Tomcat - Blog
 > WebRenderer 6 adds performance text search - Blog
 

 

 Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries 

Privacy Policy  |   Disclaimer