Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing page feed

Status
Not open for further replies.

khue

Programmer
Mar 6, 2001
112
US
does any no how to do a a new page feed force when print a lengthy page on a Macintosh OS 9.x/10/X? using ASP?
 
Does this work? (you place it where ever you want a new page)

<div style=&quot;page-break-before: always&quot;> -----------------------------------------------------------------
&quot;The difference between 'involvement' and 'commitment' is like an eggs-and-ham breakfast: the chicken was 'involved' - the pig was 'committed'.&quot;
- unknown

mikewolf@tst-us.com
 
mwolf00,

Where do you place is piece of code when the asp is generated dynamically for the user?
 
You need to determine how you want to do that. I have used tables where I'd want on table output per page so I'd write that between the tables (which I wrote in a loop)

While not objRS.EOF
thisPKfield = objRS(&quot;pkField&quot;)
if thisPKfield <> lastPKfield then 'close old table & open new'
response.write &quot;</table><div style='page-break-before: always'>&quot;
response.write &quot;<table><tr><th>Header Label</th></tr>&quot;
lastPKfield = thisPKfield
end if
'normal row processing follows...'
objrs.movenext
LOOP -----------------------------------------------------------------
&quot;The difference between 'involvement' and 'commitment' is like an eggs-and-ham breakfast: the chicken was 'involved' - the pig was 'committed'.&quot;
- unknown

mikewolf@tst-us.com
 
I'm not sure which browsers actually support that yet. I believe this is a CSS1 supported attribute, so it should be supported by IE5.5+ and NS6+, but not sure about other browsers.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
No more vacation for me :(

FAQ FAQ20-2863
= new Forums.Posting.General.GettingAnswers()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top