Daviso wrote:
Sorry
I have a html page wich generate a document and so on.
Right now to print I use the right button and the print option, but I get
the header (page 1 of x) and the feet with the name of the url.
Is there a possibility to print using a button and reject the stuff of the
page and so on..
Thanks.
Printed page header and footer are coming from the *print template*.
This template is not exposed to DOM methods.
On each particular machine you can go to File > Page Setup and change
the print template. Nothing you can do from within the page itself:
neither by JavaScript nor by CSS.
Internet Explorer exposes print template interface over LAYOUTRECT but
you still need C++/C# to work with it therefore you need an ActiveX
control at least. See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie55/html/beyondprintpreview.asp>