473,507 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2171
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4261
by: pakkocool | last post by:
¿Como ganar dinero en internet? Lee atentamente el siguiente texto, es super interesante y te hara ganar muchos dolares si sigues las instrucciones y le pones empeño: Hace unos días que...
6
2473
by: vedrandekovic | last post by:
Hello AGAIN, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!!!!!! ...
1
2189
by: sobreironn | last post by:
hi, i have a ping server and i need to change de code to make a ping cliente to interact with the ping server, to print the time that the ping takes, to send also a ping per sec, like a normal ping,...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.