Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Please can someone help me on the following.

I have created a custom print template for reports , which can be set In internet explorer as follows

JavaScript
<code>var printerObj = new ActiveXObject("InternetExplorer.Application");
printerObj.navigate('url of report')
while (printerObj.readystate !== 4) { }
printerObj.document.parentWindow.focus();
printerObj.ExecWB(6, 2, PrintTemplateURL, null);</code>


now this works fine in IE , but i would like to know how I can do this in other browsers.

Is there any way?

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900