Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 16th, 2009, 02:23 PM
Registered User
 
Join Date: Jul 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old July 16th, 2009, 04:03 PM
Registered User
 
Join Date: Jul 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #3 (permalink)  
Old July 17th, 2009, 03:02 AM
joefawcett's Avatar
Wrox Author
Points: 9,716, Level: 42
Points: 9,716, Level: 42 Points: 9,716, Level: 42 Points: 9,716, Level: 42
Activity: 9%
Activity: 9% Activity: 9% Activity: 9%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,067
Thanks: 1
Thanked 37 Times in 36 Posts
Default

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
__________________
Joe
http://joe.fawcett.name/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to print some portion of the web page. jigu_2811 C# 1 October 17th, 2006 08:16 AM
url of actual web page VB6 Perseus Beginning VB 6 0 July 30th, 2005 04:38 AM
Print an web page without URL address rekha_jsr Servlets 1 September 16th, 2004 05:15 AM
Print web page withiout printing url footer rekha_jsr Classic ASP Basics 4 September 15th, 2004 10:47 PM
Print web page data rajanikrishna Classic ASP Databases 0 December 18th, 2003 10:01 PM



All times are GMT -4. The time now is 11:27 AM.


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