This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript for print a variable without window.print()

 
ned him
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic