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

inserting a footer at a regular inteval

aa
If I have a set of documents on a letterhead with a header and footer and I
want them in HTML look as they look on the paper - i.e. if a document is
longer then one printed page, the footer and then the header are inserted -
how do I do it in ASP?

I.e. is there a way to monitor page length depending on font, margins and
perhaps graphic used?
Apr 23 '07 #1
4 1389
aa wrote on 23 apr 2007 in microsoft.public.inetserver.asp.general:
If I have a set of documents on a letterhead with a header and footer
and I want them in HTML look as they look on the paper - i.e. if a
document is longer then one printed page, the footer and then the
header are inserted - how do I do it in ASP?
Do it clientside, make a div for each page, and make all display:none;
except the one you want to show.
I.e. is there a way to monitor page length depending on font, margins
and perhaps graphic used?
No, not serverside, that is Browser dependent.

You could use pdf.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 23 '07 #2
Gazing into my crystal ball I observed "aa" <A@aa.comwriting in
news:Oz**************@TK2MSFTNGP06.phx.gbl:
If I have a set of documents on a letterhead with a header and footer
and I want them in HTML look as they look on the paper - i.e. if a
document is longer then one printed page, the footer and then the
header are inserted - how do I do it in ASP?
You can't... at least not with any accuracy. Please remember the www is
not paper, and is not tv, and is not radio, and is not movies. There is
no way for you to know the size of the users viewport, or even if the
user has a viewport at all.
>
I.e. is there a way to monitor page length depending on font, margins
and perhaps graphic used?

The only suggestion I have for you is to use ems and percentages.
Images, of course, have to be defined in pixels. However, using ems and
percentages, if the user shinks or expands font size, you can pretty well
be assured the page will not fall apart.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Apr 23 '07 #3
aa
I am doing it on my local computer and the reason for it is that I have a
database and output its contents into HTML using ASP.
Now need a printed version thereof and I try to convert my ASP output into
PDF using File--Print-AdobePDF option on my browser.
The documents are of different length so that some convert into 1 page PDF?
some into 3 pages and I need a footer ar every page.
I hoped there is a way to estimate a page length basing on the page contents
and format.
"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
Gazing into my crystal ball I observed "aa" <A@aa.comwriting in
news:Oz**************@TK2MSFTNGP06.phx.gbl:
If I have a set of documents on a letterhead with a header and footer
and I want them in HTML look as they look on the paper - i.e. if a
document is longer then one printed page, the footer and then the
header are inserted - how do I do it in ASP?

You can't... at least not with any accuracy. Please remember the www is
not paper, and is not tv, and is not radio, and is not movies. There is
no way for you to know the size of the users viewport, or even if the
user has a viewport at all.

I.e. is there a way to monitor page length depending on font, margins
and perhaps graphic used?

The only suggestion I have for you is to use ems and percentages.
Images, of course, have to be defined in pixels. However, using ems and
percentages, if the user shinks or expands font size, you can pretty well
be assured the page will not fall apart.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Apr 23 '07 #4
Gazing into my crystal ball I observed "aa" <A@aa.comwriting in
news:u7**************@TK2MSFTNGP02.phx.gbl:
>
"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
>Gazing into my crystal ball I observed "aa" <A@aa.comwriting in
news:Oz**************@TK2MSFTNGP06.phx.gbl:
If I have a set of documents on a letterhead with a header and
footer and I want them in HTML look as they look on the paper -
i.e. if a document is longer then one printed page, the footer and
then the header are inserted - how do I do it in ASP?

You can't... at least not with any accuracy. Please remember the www
is not paper, and is not tv, and is not radio, and is not movies.
There is no way for you to know the size of the users viewport, or
even if the user has a viewport at all.
>
I.e. is there a way to monitor page length depending on font,
margins and perhaps graphic used?


The only suggestion I have for you is to use ems and percentages.
Images, of course, have to be defined in pixels. However, using ems
and percentages, if the user shinks or expands font size, you can
pretty well be assured the page will not fall apart.
I am doing it on my local computer and the reason for it is that I
have a database and output its contents into HTML using ASP.
Now need a printed version thereof and I try to convert my ASP output
into PDF using File--Print-AdobePDF option on my browser.
The documents are of different length so that some convert into 1 page
PDF? some into 3 pages and I need a footer ar every page.
I hoped there is a way to estimate a page length basing on the page
contents and format.
Then you need to guestimate how much is going to be on the page. Since
you are printing you would want to set sizes in pts, margin, font, etc.
Also look into the pagebreak property for CSS and see if that might be of
help.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

May 10 '07 #5

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

Similar topics

3
by: Juha Suni | last post by:
Hi! I have managed to live without using too much regular expressions so far, and now that I need one, I need some help too. I have a string containing a (possibly large) block of html. I need...
2
by: Tristan Miller | last post by:
Greetings. I have a two-column web layout, where the first column is just the regular body text with a "marign-right" of 16em, and the second column is an "absolute"-positioned div with a width...
4
by: John hoffman | last post by:
Hello, I am trying to set the MS Excel header and footer font using automation from C#. I can set the text using: oPageSetup.LeftHeader = "Header Text"; but how do you set the Font...
1
by: Stu | last post by:
Hi, I have a button in the footer of a datagrid that sometimes does not tigger the item command. The page is quite large & has a number of homegrown controls in it. Has anyone come across this...
11
by: Mellow Crow | last post by:
I had a problem in IE 6 when trying to insert a table using W3C DOM techniques. I found a solution and share it. :) Initially I had...... ********************** <!DOCTYPE html PUBLIC...
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
4
by: cmrhema | last post by:
Hi I want to insert a new row in a gridview using C# and asp.net 2005. i have created buttons for edit and delete. now i want to have a button which is called as insert. so far i have done the...
11
by: Michael7 | last post by:
Hi everyone, Me again, been a while since I've been here, but I'm back again needing help with a simple thing. I've searched for help on creating a footer, but all the help I've found, was...
0
by: rote | last post by:
Hi Guys, But i noticed if my data source is empty, the GridView hides my footer (and header) and only display the EmptyDataText. How can i solve this. Thanks in advance
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
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...
0
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...
0
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...

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.