473,738 Members | 9,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remove HTML header when printing

Hi,
I am trying to print an HTML page from Internet Explorer and it always
put the page title and page count at the top of the page. How can I
disable printing page title and page count?
Thanks.
Jul 20 '05 #1
6 17406
> I am trying to print an HTML page from Internet Explorer and it
always
put the page title and page count at the top of the page. How can I
disable printing page title and page count?


That is just a browser setup issue. On IE6 it is specified in
File|Page Setup so you can just delete it there.

Jul 20 '05 #2
> Hi,
I am trying to print an HTML page from Internet Explorer and it always
put the page title and page count at the top of the page. How can I
disable printing page title and page count?
Thanks.


File > Page Setup > Header/Footers

--
David H
Jul 20 '05 #3
le*****@cs.utah .edu (Alec) wrote in message news:<57******* *************** ***@posting.goo gle.com>...
I am trying to print an HTML page from Internet Explorer and it always
put the page title and page count at the top of the page. How can I
disable printing page title and page count?


Go into 'Page Setup...' ('File' menu) and delete the text '&w&bPage &p
of &P' in the 'Header' box. The help file lists the various
&somethings you can use.

--- Stephen Morley ---
http://www.safalra.com
Jul 20 '05 #4
Is it possible to disable printing HTML page title and page count
programmaticall y when printing an HTML page with the use of some
JavaScript or VB functions?
Thanks.

Alec
Jul 20 '05 #5
Alec wrote:
Is it possible to disable printing HTML page title and page count
programmaticall y when printing an HTML page with the use of some
JavaScript or VB functions?


Not really! There's some ActiveX components helping, but they also
cause trouble because the user might not allow them to change settings
(or never see them, depending on security options).

--
Google Blogoscoped
http://blog.outer-court.com
Jul 20 '05 #6
le*****@cs.utah .edu (Alec) wrote in message news:<57******* *************** ****@posting.go ogle.com>...
Is it possible to disable printing HTML page title and page count
programmaticall y when printing an HTML page with the use of some
JavaScript or VB functions?


Others in this thread have given ways you can set the printing style
for *your* browser, but now it sounds like you're trying to get your
site to set the printing style for *others'* browsers, which is not
possible. You don't even know what browser or platform your users are
using; it may not even support VBScript, ActiveX, or whatever other
proprietary thing you're thinking of trying to use.

--
Dan
Jul 20 '05 #7

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

Similar topics

10
1784
by: Andrew | last post by:
I am making a web site and I am using ASP because of its templating capabilities. My footer is an include file, for obvious reasons. I can't use an include file for the header, because, while the top of the page will be 90% similar, they will have different titles, page titles, and left nav menus. I could write a function so that these vars can be interpolated, except I don't want 70 lines of Response.Write("foo") (there is a moderate...
1
2348
by: Jason | last post by:
I would like to include an html table as my header and footer. Does any one know how to use html as the header/footer? For example, every page would have the following header/footer: My Company A Graphic A Variable The DATE I figured one way to do this would be to use a com object using the following functions
2
2475
by: Dragan Kovac | last post by:
Hello everyone, I have a problem. I generated some kind of my own report (by building HTML file) and now I want to print it. Printing itself is not a problem, problem is with adding custom headers and footers on every printed page. How can I do it? Some nice example would be reeeeally great! In header I want to put a picture, some text, and in footer I would like to have page counter and some small text displayed... I've heard...
5
5381
by: Niyazi | last post by:
Hi, I have an html page and I might be moving to asp.net page that contains a some kind of forum and string. It is kind of application form. User have to enter some (string) value into the forum which forum actualy similar to small article. Then user have to use PRINT button to print the page. My problem is that when I try to print it prints the HTML Name on top left as well as the page
7
6871
by: Robert Adkison | last post by:
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...
0
1906
by: LilBuh | last post by:
Hello :) this is a repost... i ve been looking for a way since last week ... i have a template html file that i modify from my code... i need to print this file without IE's Header and Footer or any print dialog then once the printing's done... restore the original Header and footer but here's what happens: - save the current header and footer
4
3320
by: LuTHieR | last post by:
Hi, is there any way to write a header in each HTML page when printing them while leaving the header only on top of the file when viewing it? I mean, I have a file that looks like this: TITLE TABLE1 TABLE2
5
14191
by: fjanon | last post by:
Is there a way to remove the default footer/header from the printed page when printing a page from HTML/Javascript in IE 6? I want to use letterhead paper and I have to remove manually the header/footer from the default printer setting. I know that IE has lots of options/features, I spent a good time on MSDN but could not find anything. TIA Fred
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
8969
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
8788
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
9476
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...
0
9208
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...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
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
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.