Page Breaks in HTML printing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mchaggis
Forum Contributor
Posts: 150
Joined: Mon Mar 24, 2003 10:31 am
Location: UK

Page Breaks in HTML printing

Post by mchaggis »

Hi,

I understand that this may not be possible, but I am vaguely aware that you can create style sheets for printed copies of a web page, but would like to know if you can become even more specific, namely control Page Breaks.

Here's my problem, I have a system that records application form for people, and I need to print them all out as hard copy. I have my print view page, for each person, but would like to just print them out once at the end of each week say. But if I do that they don't page break in the correct place as the details on the page can range from quite small to quite a lot of text.

So all I am looking for is a way to say when printing, start new page here?

Any ideas, I have looked into generating RTF's but table structures in RTF are a nightmare :(

It may also be worth noting that it is a linux based platform, so COM components are out of the question.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

It's possible by CSS 2.0, but Internet Explorer don't know this feature either.

I know Opera does, maybe Firefox too.
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

And instuctions on style can be found at http://www.w3.org/TR/REC-CSS2/page.html ... eak-before
Post Reply