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?
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.