Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 8th, 2004, 06:12 PM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Headers & Footers

How do I supress headers and footers from printing. I have created a report page from the database which views with the tool bar only. However when I print, it shows the web location etc which I don't want to display. Please help. Thanks.

 
Old July 11th, 2004, 05:30 PM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any ideas anybody Please??? Thanks.

 
Old July 12th, 2004, 06:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Orangem,

These details are added in the browser preferences
(File->Page Setup in IE)
and you can't change it using web scripting.

I have never come across anyone doing that programatically. There are other ways of doing it using a ScriptX activeX script, but it may be blocked by some corporate firewalls, may generate a security alert and the user will have to agree to allow it. So I won't recommend doing that.

If I find something useful (only if you are lucky enough), then let me post that here for you.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old July 12th, 2004, 07:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

On widening my search on exploring this I found something useful(may be a feasible way too, if tested and works fine)

This has got something to do with registry. But not sure if that can be done at all client browsers. I haven't either tried this yet or got an idea to work that out.

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup

is where the Header and Footer values are stored. So one can programmatically edit those values and set something/nothing as needed. I may be talking nonsense here as I haven't really tried this.

Let me try something on this in my free time and will post you on its status.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old July 12th, 2004, 11:17 AM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Vijay, you must be so busy and extremely quick...






Similar Threads
Thread Thread Starter Forum Replies Last Post
To show 2 footers in a asp.net 1.1 datagrid contro daffodils ASP.NET 1.0 and 1.1 Professional 0 November 20th, 2006 05:54 AM
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
footers et. al. in css cat Dreamweaver (all versions) 2 August 22nd, 2004 12:57 AM
Headers skicrud Beginning PHP 2 October 10th, 2003 02:21 PM





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