When I print a webpage from Internet Explorer it will automatically add a header and footer including the website title, URL, date, and page number.
Is it possible to hide the header and footer programatically using Javascript or CSS?
Requirements:
Thanks
You can turn off these headers and footers using the following steps: In the Chrome menu, click Print… to open the print preview screen. Click More Settings. Uncheck Headers and Footers.
Google Chrome: Go to the Menu icon in the top right corner of the browser and Click on Print button. Uncheck the “Headers and footers” option underneath the “Margins” option.
Add a header, footer, or legend to a view. In the File tab, click Print, then click Page Setup. On the Header, Footer, or Legend tab, click the Left, Center, or Right tab. In the text box, type or paste the text, add the document or project information, or insert or paste a graphic.
In your print options you can disable this. The only way to do it programatically is with an activeX control which writes to the registry or a script block which is written in VB. The settings for your print options are stored in the registry. The user would have to allow your script to access the registry which most people wouldnt because of security.
If you want to control page content, you can use a css print stylesheet.
Edit: There are 3rd party active x controls which can programatically print for you, but once again, the user would have to choose to download and install it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With