Imprimir

D

Daviso

Buenas.

Tengo una pagina html que me crea un documento con el logo y demás.
De momento la imprimo con el boton derecho e imprimir pero el problema es
que me sale en el encabezado, pag 1 de x y en el pie la dirección web.

Hay posibilidad de poner un boton y mandar a imprimir sin que salga el tema
este???

Gracias
Salu2
 
D

Daviso

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

VK

Daviso said:
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>
 
D

Daviso

Thanks
VK said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,112
Latest member
BrentonMcc
Top