User    Pass    













Key Benefits




Standards Supported




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




Removing headers when printing




Intercepting Page loads

This example shows how to manipulate print headers.

To remove the print headers from documents before printing:

(IIEBrowserCanvas)browser.print(1, "header", "footer");

Description: The print method can take integer values to turn off print dialogs etc, it also takes two String parameters. The String parameters are the headers you wish to print.

browser.setPrefProperty("print.print_headerleft", "");
browser.setPrefProperty("print.print_headercenter", "");
browser.setPrefProperty("print.print_headerright", ""); 
browser.setPrefProperty("print.print_footerleft", ""); 
browser.setPrefProperty("print.print_footercenter", ""); 
browser.setPrefProperty("print.print_footerright", "");

Description: The setPrefProperty method takes two paramaters. The first String parameter defines the print header affected. The second String paramater is the value for the corresponding header.

Specical characters can be passed including:
&T - Document Title
&U - Document URL
&D - Date
&P - Page Number
&PT - Page Number of total pages



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




 > 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