Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing without print dialog

 
Sahil Sharma
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement where in i have to print a page without the header and footer. The print should happen once user clicks on the print button on the page but no print dialog should come. Is this possible using javascipt or some other API?

Thanks.
 
Rob Spoor
Sheriff
Pie
Posts: 20665
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The words "page" and "javascript" make me think you want to print an HTML page, and that means this thread is off to HTML and JavaScript.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagine surfing the web and all of the sudden 10000000000000000000000000000 pure black pages starts to print on your printer. Allowing a web page to print without the dialog is a bad idea, hence why you can not do it with JavaScript. If you are an IE Shop there is ActiveX controls that do it, you would have to search the net and most of them cost $$$$ money.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic