You could try doing it in the css of the page.
IE:
STYLE
H1 { page-break-before: always }
/STYLE
...
H1 CLASS=chapternbsp;
Hope this helps.
- Original Message -
From: Tim Laureska [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, August 23,
Set up a stylesheet for printing (media=print), then you can take
advantage of the printing mechanisms in CSS.
Orphans, page, page-break=after, page-break-before, size and widows would be
the main one. You can also set up the print style sheet using inches (since
the page size is known). Set
then prints top alligned. Anyone know how to fix this?
--
James Smith
[EMAIL PROTECTED]
- Original Message -
From: Jason Lees (National Express) [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 2:11 PM
Subject: RE: Page Breaks for Printing
We use page breaks
Quoting James Smith [EMAIL PROTECTED]:
If the document is say 2 pages long and the first page (before the CSS
page break) is short, say 50% page height, it prints alligned to the
BOTTOM of the page, page 2 then prints top alligned. Anyone know how
to fix this?
Show the stylesheet. And if
CSS. Think it may be IE only. Look at these properties:
page-break-after
page-break-before
page-break-inside
You can then set up divs or p blocks that will throw a page break right where you
want it. We did this with some success for printing out course certificates and stuff
before.
Tim
We use page breaks, and its a simple tag extention of the classic paragraph
Tag
p STYLE=page-break-before: always
The Complication is deciding on the location to place the Tag.
Jason Lees
Development Team Leader
National Express Coaches Ltd.
-Original Message-
From: Chad
CSS holds the answer.
style type=text/css
BR.pageEnd{page-break-after: always;}
/style
.
.
.
This line should be above the break
br class=pageEnd
This line should be after the page break.
This only works in CSS2 compliant browsers.
Hope this helps,
Pete
- Original Message -
Oh cool.. thanks... I have control of what browser the user has so this
should work!
-Original Message-
From: Timothy Heald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 9:08 AM
To: CF-Talk
Subject: RE: Page Breaks for Printing
CSS. Think it may be IE only. Look
This might be
useful.
http://www.cfconf.org/cfun-02/talks/DynamicallyGeneratingPDF_files/sld003.cfm
Generating PDFs is also a valid option.
I've heard that giving the HTML file with a .doc extension instead of
html will open it in word, which will render the HTML as a document with
page
Quoting Chad [EMAIL PROTECTED]:
Has anyone figured out how to make page breaks for printing?
http://www.w3.org/TR/REC-CSS2/page.html
Jochem
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
10 matches
Mail list logo