Click here to Skip to main content
14,430,403 members
Rate this:
Please Sign up or sign in to vote.
See more:
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?
Posted
Updated 13-Sep-12 0:44am
v2
Comments
Mohibur Rashid 13-Sep-12 5:49am
   
How about changing your method of printing? such as using pdf?
Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

I guess you cannot handle this kind of client browser setting from your asp.net page niether from CSS or javascript. if the print should come without headers and footers, then you have to change the setting of the client browser. Goto File - PageSetup, make header and footer as empty.

hope it helps.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100