473,748 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print Page - Remove Headers and Footers

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.Conten tType = "applicatio n/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 programmaticall y 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

Nov 19 '05 #1
7 6871
start by looking at the CSS print options, that can automatically remove
sections of your page you dont want ptinting in compliant browsers

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Robert Adkison" <Ro***********@ discussions.mic rosoft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
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.Conten tType = "applicatio n/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 programmaticall y 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

Nov 19 '05 #2

"Robert Adkison" <Ro***********@ discussions.mic rosoft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
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.Conten tType = "applicatio n/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 programmaticall y 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

Nov 19 '05 #3
In <e$************ **@TK2MSFTNGP09 .phx.gbl> Mythran declaimed:
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


Actually, I found an ActiveX control that will let you do this from
script in your web pages. It's free, and freely distributable, to boot!! :)

Check out this URL: http://www.meadroid.com/scriptx/intro62.asp

It lets you set margins, and customize the header and footer. (You can
even put HTML in the header & footer.)

Cheers!
Nov 19 '05 #4
This is a very cheap (no cost) and easy solution (no extra code) to
implement.

Thank you very much.

"Mythran" wrote:

"Robert Adkison" <Ro***********@ discussions.mic rosoft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
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.Conten tType = "applicatio n/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 programmaticall y 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

Nov 19 '05 #5
Mike,

Thanks for the info about the component. In the short term, I may take
the easy way out using the solution suggested by Mythran, but since I have
Citrix to contend with, and I do not want to have to set everyone's browers
(remove the header and footers), the component in the long run may be the
better solution.

Robert

"Mike Hofer" wrote:
In <e$************ **@TK2MSFTNGP09 .phx.gbl> Mythran declaimed:
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


Actually, I found an ActiveX control that will let you do this from
script in your web pages. It's free, and freely distributable, to boot!! :)

Check out this URL: http://www.meadroid.com/scriptx/intro62.asp

It lets you set margins, and customize the header and footer. (You can
even put HTML in the header & footer.)

Cheers!

Nov 19 '05 #6
Hi,

I'm having the same problem here, and I like the idea to use CSS, but I
can't find info about, con you help out?

Thanks
--
So as you read this know my friends
I''d love to stay with you all
Please smile when you think of me
My body''s gone that''s all

A tout le monde, A tous mes amis
Je vous aime, Je dois partir
"John Timney (ASP.NET MVP)" wrote:
start by looking at the CSS print options, that can automatically remove
sections of your page you dont want ptinting in compliant browsers

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Robert Adkison" <Ro***********@ discussions.mic rosoft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
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.Conten tType = "applicatio n/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 programmaticall y 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


Mar 3 '06 #7
If you have internet you have browser access, then google on the internet. I
recommend W3schools as a good compact reference to all sorts of stuff
including CSS

--
Terry Burns
http://TrainingOn.net
"Harugrin" <Ha******@discu ssions.microsof t.com> wrote in message
news:93******** *************** ***********@mic rosoft.com...
Hi,

I'm having the same problem here, and I like the idea to use CSS, but I
can't find info about, con you help out?

Thanks
--
So as you read this know my friends
I''d love to stay with you all
Please smile when you think of me
My body''s gone that''s all

A tout le monde, A tous mes amis
Je vous aime, Je dois partir
"John Timney (ASP.NET MVP)" wrote:
start by looking at the CSS print options, that can automatically remove
sections of your page you dont want ptinting in compliant browsers

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Robert Adkison" <Ro***********@ discussions.mic rosoft.com> wrote in
message
news:C8******** *************** ***********@mic rosoft.com...
>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.Conten tType = "applicatio n/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 programmaticall y 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
>


Mar 4 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1533
by: michaaal | last post by:
I am developing an Intranet application for a business. I would like to be able to print out certain bits of information just as regular applications do. I realize that this is a little more difficult, and after doing research it seems that the best way to print is to use JavaScript's "window.print();" command. The only problem I have with this is that #1 - it prints the address and date at the bottom of the page #2 - it prints the...
37
3413
by: Jeff Thies | last post by:
There's a number of elements that I set attributes for: <table border="1" cellpadding="3" cellspacing="0">.. <img align="middle"> Are there CSS equivalents for any of these? Jeff
1
1723
by: Zoe Brown | last post by:
Ok, so this is not a JavaScript question but please help me if you can anyway !! I need to print some pages from my site. The printed page should have headers and footers and I am looking for a property or something that I can set perhaps in CSS to do this. I know about the media class for CSS and am using this to make the printed page different from the webpage but I really don't fancy having to physically insert the page headers. Is...
4
4987
by: Das | last post by:
Hi All, I want to have a link on the web form. On click it should print the web form. If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing. Is there any other method to print the complete form thanks in advance... das
1
2573
by: Kenneth | last post by:
Hi, In IE6 you can configure output to the printer getting a clean printout only with content, but without headers and footers. You remove the Header and Footer content from the Page Setup. But when you've done that, you have to know how to get those values back unless you've saved them somewhere for later retrieval. What I need is a way to programmatically print out a page on a printer with only the content and that the next time the user...
22
130345
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
0
1144
by: hector | last post by:
Hi all, Need i simple example on how print/preview data from a database. I already have some code but I am lost because the preview does not create multiple pages and only shows the first page and the printing goes over the margins of the page. My problem is that I cannot figure out how to control new page when page is getting full. Another problem is that I would like to have a common place to set headers and footers to be printed...
3
1802
by: Michael | last post by:
Hey everyone, Is it possible to automatically insert headers/footers using mod_python? I will be not be using PSP's, so I cannot use the PSP/include solution. Furthermore, the header will be dynamic; it won't be a static HTML page. In short, I've been looking for a page layout facility using mod_python.
0
5323
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string footer = null; object o = null; InternetExplorerClass ie = null;
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.