I don't think the question was about stopping the headers/footers
permanently.  I think it was about suppressing it for certain pages only.  I
think the options example was there more as an example of the effect wanted.

I too need to do this on a regular basis.  In intranet systems I set up for
clients, I often have printer-friendly versions of ASP-generated reports.
On occasions, these will actually take the form of letters to be sent to
their customers, complete with normal company letterhead.  The browser
headers and footers are a real annoyance on these.  Yet for most browser
printing on the same machines, the headers and footers are quite acceptable
and sometimes even helpful.

I know an intranet is a captive audience, and I can go around and turn all
the headers and footers off - but that's going to remove it from all pages,
not just the ones I need to remove it from.  (I don't think overriding the
user's default headings temporarily - even to the extent of blanking them
out - should be a worry to users.  It's not much different to downloading
and printing a Word or PDF file - you get the author's headers and footers,
not your own.  The default settings are there really to provide a convenient
heading for non-structured printouts, so that users can easily remind
themselves of where and when the print came from.)

I'd like to see an option (CSS proably) which could tell the browser to
suppress headers (for this print only).  I can't find one.  Does anyone know
of one?

Shawn, you mention outputting the document in PDF for printing.  This is an
interesting option and one I'm not familiar with.  I use Cute PDF Writer to
output Word, Excel, etc documents to PDF for storage on web sites for
download, but I've never investigated getting ASP to cut a report into a PDF
file.  I will get onto Google and have a look over the weekend, but if there
is some product or pointer you could kick-start me with, I'd be very
grateful.

Dave S

----- Original Message ----- 
From: Shawn K. Hall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 3:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Print headers


Hi Far,

> When a user prints a document from my site, their browser,
> by default, tends to include footers like: &u&b&d
> Is there a way I can programmatically redefine or suppress
> the header and footer settings in their browser while they
> print my document, and then restore those settings to what
> they were when the print job is complete?

1) This assumes your 'page' has registry-level access to the client
PC, which is a security nightmare.

2) This assumes your users are all using IE.

Yuck.

If you MUST strip the **user preference** headers and footers off a
printed document output your document in PDF and have them print
that.

Regards,

Shawn K. Hall
http://ReliableAnswers.com/



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.806 / Virus Database: 548 - Release Date: 6/12/2004



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to