My apologies if this has already been posted, our mail server had a hiccup
and I'm missing some of the posts. Anyways what we had done was to set a
style of:
<STYLE>
H2 {page-break-before: always}
</STYLE>
(CCS2 spec)
you can use whatever element you wish though. Then where ever we wanted to
have a page-break for printing, we inserted a blank set of H2 tags
<h2></h2>.
Our scenario was a single web page that contained a variable amount of
reports that the user selected from a previous page. We then built the page
and inserted the H2 tags so when the user printed the screen, it would page
break appropriately.
Hope this helps.
Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com: (703) 805-1095
DSN: (703) 655-1095
-----Original Message-----
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 10:04 AM
To: CF-Talk
Subject: RE: Creating Page Breaks to make page printable?
I did an ASP project a while back that required page breaks on print. After
head banging by a lot of people, I came up with the following code.
When printed from "most" browsers, it prints in what looks like page breaks
because of the way browsers try to not break images. If you tie your text
content to an image (that is around 80% of the page height) with a table,
the browser will print what looks to the user as page breaks.
You might need to adjust the height of the spacer, but I think this is the
number that worked in Netscape and IE 3 up.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="spacer.gif" width="1" height="450"></td>
<td>Page One Content</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="spacer.gif" width="1" height="450"></td>
<td>Page Two Content</td>
</tr>
</table>
Paul Sizemore
Finish Line
3308 N Mitthoeffer Rd
Indianapolis, IN 46235
W: 317-899-1022 ext 3516
-----Original Message-----
From: Bill Davies [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:07 AM
To: CF-Talk
Subject: RE: Creating Page Breaks to make page printable?
Don't think page break is implemented in Navigator.
-----Original Message-----
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
Sent: 17 April 2001 05:34
To: CF-Talk
Subject: Re: Creating Page Breaks to make page printable?
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/pageBre
akAfter.asp
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 6:20 PM
Subject: Re: Creating Page Breaks to make page printable?
>
> > Does anyone know of a way to force printing breaks of a document?
>
> You can do this with style sheets.
>
>
>
> ----------------------------------------------
> This message sent compliments of db Technology
> http://www.dbtech.net/
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists