p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# (http://p2p.wrox.com/forumdisplay.php?f=22)
-   -   How to print a web page without title, URL, page #, date and time (http://p2p.wrox.com/showthread.php?t=75289)

Mattt July 16th, 2009 02:23 PM

How to print a web page without title, URL, page #, date and time
 
I have a web page (all static text and data fit in one page). Using the browser print button, it will print the page with "Untittle Page" on the top left corner, the URL on the top right, the "page 1 of 1" at the bottom left, the date and time at the bottom right. In C#, how can I print the page without these "titlte" in the 4 corners?? Thanks in advance.
7/16/09

Mattt July 16th, 2009 04:03 PM

Got it
 
I just saw a message to turn of header and footer in the browser's "Page setup", and it works great. No need to reply to this.
Thanks.

joefawcett July 17th, 2009 03:02 AM

Furthermore these might be of interest:
  • You can control printing using custom print templates, but these are IE only and only suitable for an intranet environment
  • You can control a lot by using a special CSS stylesheet with @media set to print, this doesn't include headers and footers though


All times are GMT -4. The time now is 03:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.