Re: Print Page - Remove Headers and Footers
- From: "Mythran" <kip_potter@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 16:40:13 -0700
"Robert Adkison" <RobertAdkison@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C801A907-8581-49D5-AF73-0D1FFFF3C5BE@xxxxxxxxxxxxxxxx
I need to print a web page. It is my preference that my users just do a
File/Print from explorer. That way my users will get the print dialog that
will allow them to select the fax printer. The only problem with doing this
is that a header (name of the page and Page x of x) and footer (actual page
filename the date) are included. I am proficient with using Crystal Reports
v10 (developers version) which will create a PDF file for you to print
without the header and footer I am trying to avoid. The problem for our
company with using Crystal reports is that they want to charge us $1600 (to
update to their advance developers version) to use Crystal on another web
server (we have already used our one license that comes with the developers
version of Crystal Reports v10).
I also looked at using window.print(); but it also prints the header and
footer that I am trying to avoid. I have also tried using
Response.ContentType = "application/msword" . This solution does work and
excludes the header and footer; but the user may have to use Citrix to get to
the intranet page and this would mean installing Word on a Citrix server
(then we would have to pay Microsoft for a license to install Word on Citrix
just to be able to print a page from explorer).
Does anyone know how to suppress the header or footer when printing from
explorer; or is their a cheap way to move a aspx page to PDF format (the way
Crystal does) , or move the page programmatically to some other reader
application that would allow for printing (would be nice if MS had a Word
reader that would cost nothing to put on a server).
Thanks for any help.
Robert
Those headers and footers are controlled by IE settings...the only way to remove those is by either having the user change the settings on IE (IE 6.0 - File->Page Setup->Header textbox and Footer textbox) or by modifying the clients registry (find the text in the Page Setup dialog box then do a search in the registry for the Registry values to change). Either-or requires modifying those entries on the clients machine.
HTH, Mythran
.
- Follow-Ups:
- Re: Print Page - Remove Headers and Footers
- From: Robert Adkison
- Re: Print Page - Remove Headers and Footers
- From: Mike Hofer
- Re: Print Page - Remove Headers and Footers
- References:
- Print Page - Remove Headers and Footers
- From: Robert Adkison
- Print Page - Remove Headers and Footers
- Prev by Date: Re: create a date
- Next by Date: Re: Need Javascript - if user clicks in textbox, label not visible
- Previous by thread: Re: Print Page - Remove Headers and Footers
- Next by thread: Re: Print Page - Remove Headers and Footers
- Index(es):
Relevant Pages
|