aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Printing using Javascript" Watch "Printing using Javascript" New topic
Author

Printing using Javascript

sajeev JS
Greenhorn

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.
regards
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.
Sudharsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Printing using Javascript