sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
's Avatar

HTML Reports, want to print the report heading on each page...


Question posted by: (Guest) on July 23rd, 2005 11:41 PM
Hello,

I have generated an HTML version of a previously text report in our
application. Looks great everything fine for viewing.

Currently the heading of the report is at the top of the HTML report. Would
like for the contents of this header to automatically print at the top of
each page if the user prints it. Is there anyway to do this within HTML?

I know this is a simple request but did not se it in the FAQ.


Thanks in advance,

James


2 Answers Posted
Stephen Poley's Avatar
Stephen Poley July 23rd, 2005 11:42 PM
Guest - n/a Posts
#2: Re: HTML Reports, want to print the report heading on each page...

On Sun, 14 Nov 2004 23:01:18 GMT, <JFOREMAN10@houston.rr.com> wrote:
[color=blue]
>I have generated an HTML version of a previously text report in our
>application. Looks great everything fine for viewing.
>
>Currently the heading of the report is at the top of the HTML report. Would
>like for the contents of this header to automatically print at the top of
>each page if the user prints it. Is there anyway to do this within HTML?[/color]

Not directly, no. But if you place it in the Title element, I think
you'll find many/most browsers will put it at the top of the page.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Eric Kenneth Bustad's Avatar
Eric Kenneth Bustad July 23rd, 2005 11:42 PM
Guest - n/a Posts
#3: Re: HTML Reports, want to print the report heading on each page...

In article <2tRld.24246$SS3.10067@fe2.texas.rr.com>,
<JFOREMAN10@houston.rr.com> wrote:[color=blue]
>Hello,
>
>I have generated an HTML version of a previously text report in our
>application. Looks great everything fine for viewing.
>
>Currently the heading of the report is at the top of the HTML report. Would
>like for the contents of this header to automatically print at the top of
>each page if the user prints it. Is there anyway to do this within HTML?
>
>I know this is a simple request but did not se it in the FAQ.[/color]

If your report is a <table>, you can enclose the header portion in
<thead></thead> tags, the rest in <tbody></tbody> tags. Then *some*
browsers will print the header at the top of each page.

--
= Eric Bustad, Norwegian bachelor programmer
 
Not the answer you were looking for? Post your question . . .
196,804 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,804 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors