jQuery in Action, 3rd edition
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 Building Microservices this week in the Design 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: 15385
    
    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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: javascript for print a variable without window.print()
 
It's not a secret anymore!