473,382 Members | 1,622 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,382 software developers and data experts.

How to manage header/footer on web form

I have a web form that generates 4 or 5 printed pages of html and a few
images. I know how to insert CSS page breaks.

Is there a way to calculate on the server where the page will break - like
an IE print preview on the server ?

or

Is there a way on the server to include a header/footer such that when the
web form is printed from Internet Explorer, each printed page has a header
and footer?

Thanks for any direction

May 3 '07 #1
4 2660
On May 3, 12:36 pm, "stevesj" <stev...@hotmail.comwrote:
I have a web form that generates 4 or 5 printed pages of html and a few
images. I know how to insert CSS page breaks.

Is there a way to calculate on the server where the page will break - like
an IE print preview on the server ?
A print preview is related to the client's printer.
You cannot get this information on the server side.

or

Is there a way on the server to include a header/footer such that when the
web form is printed from Internet Explorer, each printed page has a header
and footer?

Thanks for any direction

May 3 '07 #2
I understand that print preview is client side.

I'm wondering if there is a way to create dynamic headers and footers in the
web form on the server, say at every 7.5 inches. There exist .Net PDF
products that convert web form html into PDF format and insert dynamic
headers/footers. I'm just wondering if there is a similar way of
accomplishing this in a web form.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
On May 3, 12:36 pm, "stevesj" <stev...@hotmail.comwrote:
>I have a web form that generates 4 or 5 printed pages of html and a few
images. I know how to insert CSS page breaks.

Is there a way to calculate on the server where the page will break -
like
an IE print preview on the server ?

A print preview is related to the client's printer.
You cannot get this information on the server side.

>or

Is there a way on the server to include a header/footer such that when
the
web form is printed from Internet Explorer, each printed page has a
header
and footer?

Thanks for any direction

May 3 '07 #3
On May 3, 2:05 pm, "stevesj" <stev...@hotmail.comwrote:
I understand that print preview is client side.

I'm wondering if there is a way to create dynamic headers and footers in the
web form on the server, say at every 7.5 inches. There exist .Net PDF
products that convert web form html into PDF format and insert dynamic
headers/footers. I'm just wondering if there is a similar way of
accomplishing this in a web form.
I think a similar way would be a library used GDI+ to make a graphic
output that can be shown on the "print preview" ASP.NET page. There
are many similar things called "HTML-to-Image"... I guess it will be
too complex

Another way could be an export to a Word document

Of course, you can also do a fixed-height tables or divs and make a
css print breaks between them, but I guess you know this way and you
don't like it...

May 5 '07 #4
On May 5, 2:38 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On May 3, 2:05 pm, "stevesj" <stev...@hotmail.comwrote:
I understand that print preview is client side.
I'm wondering if there is a way to create dynamic headers and footers in the
web form on the server, say at every 7.5 inches. There exist .Net PDF
products that convert web form html into PDF format and insert dynamic
headers/footers. I'm just wondering if there is a similar way of
accomplishing this in a web form.

I think a similar way would be a library used GDI+ to make a graphic
output that can be shown on the "print preview" ASP.NET page. There
are many similar things called "HTML-to-Image"... I guess it will be
too complex

Another way could be an export to a Word document

Of course, you can also do a fixed-height tables or divs and make a
css print breaks between them, but I guess you know this way and you
don't like it...
P.S.
maybe this give you some thoughts on the question
http://www.codeproject.com/aspnet/Ru...tTemplates.asp

May 5 '07 #5

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

Similar topics

1
by: Shiz | last post by:
I currently have a Form with Option buttons (to give you the option of sorting by name, or by Field, etc), these are referenced in a module which then formats the report contingent on the option...
2
by: Salad | last post by:
Is there a way to determine which section of a form a control is located in code....besides using the tag property?
11
by: Peter Wu | last post by:
Hello, I want to create a Header and Footer for every ASPX page I build. I created 2 Web user controls respectively and placed them in an ASPX page. The problem is that I cannot position the...
3
by: John Crowley | last post by:
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the...
0
by: 00_ChInkPoIntD12 | last post by:
Is there any box wrapping control? so that I can put stuff in the box so that it looks more professional in a page. I am not sure what they call. It seems stupid to me to use "Header" and...
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: 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...
0
by: krishnagovindaraj | last post by:
Hi, I have to create word document with header and footer..its working in web layout.In Print Layput,the header is displayed two times..Plz give me the solution...its very urgent.. strBody =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.