Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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.
 
Old July 17th, 2009, 03:02 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 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/





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 11:01 PM





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