File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Printing using Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Printing using Javascript" Watch "Printing using Javascript" New topic

Printing using Javascript

sajeev JS

Joined: May 06, 2003
Posts: 6
Dear Friends
Hi. I am in need of taking a printout in IE.
In javascript I used 'window.print()', It gave me printout but with it's own
header and footer. I can disable it in IE settings.
I want to know whether it is possible by using Javascript to set headers and footers , also I want to know How to disable the print
dialog which appears soon after I click the button which prompts me
to specify the no. of pages and all.
Any suggessions from your side will be greatly appreciated.
Sajeev Jaladharan
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
JavaScript is not designed for doing these kind of things. If you need more control over your printer settings, try an Active-X control or signed Applet.
I agree. Here's the link:
subject: Printing using Javascript
It's not a secret anymore!