Two Laptop Bag*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript for print a variable without window.print()
 
Similar Threads
java printing - printing a pdf
Can I have Controlled Prinitng in JavaScript
invoking Print job of java from javascript
How to print
jsp/servlet automatically print to non local printer