File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes javascript for print a variable without window.print() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript for print a variable without window.print()" Watch "javascript for print a variable without window.print()" New topic
Author

javascript for print a variable without window.print()

ned him
Greenhorn

Joined: Aug 06, 2007
Posts: 7
please help me for print on printer by javascript.
i am facing 4 problems.

1)how to set paper size is 3x3 inch.( but in java we use 'new paper.setSize(200,200)')

2)how to disable header and footer of paper(filename,date pageno,...)

3)how to print a hidden type textbox value without window.print()

4)how to catch printer problems
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
JavaScript has no control of printer, printer settings, or the print dialog.

Only option would would have is to look into ActiveX controls for printing with Internet Explorer.

Eric
 
jQuery in Action, 2nd edition
 
subject: javascript for print a variable without window.print()