469,352 Members | 1,694 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Imprimir

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
Feb 7 '06 #1
3 2112
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.
Feb 7 '06 #2
VK

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>

Feb 7 '06 #3
Thanks
"VK" <sc**********@yahoo.com> escribió en el mensaje
news:11**********************@f14g2000cwb.googlegr oups.com...

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>

Feb 7 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.