473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2443
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**********************@sportnet.hr> wrote in message
news:mm********************************@4ax.com...
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
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...
3
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,...
0
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...
2
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...
2
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...
0
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...
7
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
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.