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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to