473,748 Members | 10,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adding my own header and footer when printing HTML file

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 something about printing templates introduced in IE 5.5, but
I'm not sure how can I use it in my situation? How complicated it is?

Why there is no control which will take little HTML for header, little
HTML for footer, and HTML for main page? :(

Thanks in advance,

Dragan

P.S. I'm using C# and Visual Studio .NET 2003.

--
Some mistakes are too much fun to make them only once.
Jul 21 '05 #1
2 2475
Hello Dragan,

Not sure what you specifically want. Are you using any specific controls. It
would probrbaly be easier to use a third party web reporting tool. Microsoft
provides a really neat resource kit called the VB.Net Resource Kit. In this
ComponentOne provide completely free the suite of controls they produce. In
this suite is a web reporting control which you can also use in C#. I feel
this will be able to prvide you with the greater amount of control you want.
Well worth investigating if you haven't already done so.

Je ste vi u Zagrebu? Ja sam u Perth Zapnoj Australiji.

Nick

"Dragan Kovac" <dr************ **********@spor tnet.hr> wrote in message
news:mm******** *************** *********@4ax.c om...
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 something about printing templates introduced in IE 5.5, but
I'm not sure how can I use it in my situation? How complicated it is?

Why there is no control which will take little HTML for header, little
HTML for footer, and HTML for main page? :(

Thanks in advance,

Dragan

P.S. I'm using C# and Visual Studio .NET 2003.

--
Some mistakes are too much fun to make them only once.

Jul 21 '05 #2
On Wed, 5 Nov 2003 18:56:49 +0800, "Nick Zdunic" <ni**@ss.com.au > wrote:
Not sure what you specifically want. Are you using any specific controls. It
would probrbaly be easier to use a third party web reporting tool. Microsoft
provides a really neat resource kit called the VB.Net Resource Kit. In this
ComponentOne provide completely free the suite of controls they produce. In
this suite is a web reporting control which you can also use in C#. I feel
this will be able to prvide you with the greater amount of control you want.
Well worth investigating if you haven't already done so.
I'll try ComponentOne, thanks for the advice. :)
Je ste vi u Zagrebu? Ja sam u Perth Zapnoj Australiji.


Yep, Zagreb... :)

--
Pif stiki, fif stiki.
Jul 21 '05 #3

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

Similar topics

4
4126
by: Jez | last post by:
I'm ashamed that I need to ask this question. I've been using PHP for almost a year now, and have used HTML extensively in the last few years. Often, when I create a new site, I use include() to add an HTML header at the top of the page and a footer (ususally including a menu) at the bottom. Up to now I've created two or more copies of each header and footer, the only difference being the path to linked files. For example, in
3
6881
by: will | last post by:
Dear All, can anyone help here? I need to use XML/XSLT to print out some documents which must all have the same letterhead and footer section on all pages. The section in between is dynamic XML, and will be of variable length. Is it possible in XSLT to specify that this section must appear on every page in this position? And what is the best strategy for specifying that the variable XML
0
1790
by: Gerald Thallinger | last post by:
Hallo together! I try so solve the following problem. I wrote a HTML-File an print it via MS Internet Explorer, Version 6.0. I currently have all 3 tables in my report for outputting. I print the header table. I print the body table with, 1 to 100 rows from the database. Then I print the footer. Currently I put a height on the body table so the footer table will be near the bottom of the page each time.
2
2437
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...
2
9270
by: LilBuh | last post by:
hi there :) i ve been looking for some time a way to print an html file from vb.net i came up with this code for printing and removing the header and footer from IE then once the printing is done restore the original header and footer Imports Microsoft.Win32 Private WithEvents myprocess As Process Private OldHeader As String
0
1907
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
7
9519
by: Neil Jarman | last post by:
Hi, I would like to allow users to print a page, but I want to suppress the header and footer that appear by default. I gather its done with a style sheet. Please advise. Many Thanks,
7
8728
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will remain the same. I am interested to know your opinions/suggestions in finding an easy way of doing it. In asp one could have something like this:
5
14192
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
8989
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
8828
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
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
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
8241
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...
0
6073
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
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.