p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 1.0 > C#
I forgot my password Register Now
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 16th, 2009, 03:23 PM
Registered User
Points: 19, Level: 1
Points: 19, Level: 1 Points: 19, Level: 1 Points: 19, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old July 16th, 2009, 05:03 PM
Registered User
Points: 19, Level: 1
Points: 19, Level: 1 Points: 19, Level: 1 Points: 19, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old July 17th, 2009, 04:02 AM
joefawcett's Avatar
Wrox Author
Points: 8,994, Level: 40
Points: 8,994, Level: 40 Points: 8,994, Level: 40 Points: 8,994, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 2,922
Thanks: 0
Thanked 13 Times in 12 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 09:16 AM
url of actual web page VB6 Perseus Beginning VB 6 0 July 30th, 2005 05:38 AM
Print an web page without URL address rekha_jsr Servlets 1 September 16th, 2004 06:15 AM
Print web page withiout printing url footer rekha_jsr Classic ASP Basics 4 September 15th, 2004 11:47 PM
Print web page data rajanikrishna Classic ASP Databases 0 December 18th, 2003 11:01 PM



All times are GMT -4. The time now is 05:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc