473,602 Members | 2,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2679
On May 3, 12:36 pm, "stevesj" <stev...@hotmai l.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.goog legroups.com...
On May 3, 12:36 pm, "stevesj" <stev...@hotmai l.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...@hotmai l.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...@hotmai l.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
12401
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 chosen (i.e. the title changes to say "Sorted by Name" or "Sorted by Field"). For one of the options, "Sort by Field" I would not only like to have them sorted by Field alphabetically, but I would like to Group them and have a Group Header and...
2
5042
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
8318
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 Footer to be always at the bottom of the page. The Header and Footer are always together at the top of the page. Was I missing anything? Thanks!
3
1934
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 following reasons: 1) Render blocks are not allowed inside a templated control. 2) I want the inner controls scoped at the parent aspx (or ascx), not at the template naming container. This type of control would be ideal for website headers and...
0
1070
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 "Footer" (User Control) like this.. <c1:HEADER id="BoxHeader" runat="server"></c1:HEADER> ...Form, HTML Content or another control...
2
9255
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
1894
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
8697
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:
0
2211
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 = "<html xmlns:o='urn:schemas-microsoft-com:office:office' " & _ "xmlns:w='urn:schemas-microsoft-com:office:word'" & _ "xmlns='http://www.w3.org/TR/REC-html40'>" strBody = strBody + "<!-->" & _ "<xml>" & _ "<w:WordDocument>" & _
0
7993
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
7920
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
8404
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
8054
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
8268
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
6730
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
5867
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...
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1254
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.