Reply to Re: printing issue

Your name:

Reply:


Posted by Jukka K. Korpela on 06/11/07 19:30

Scripsit Mouarf:

> is there a way in an HTML document to specify where the page breaks
> must be when printing to paper?

Use page-break-before: always or page-break-after: always in CSS, for
suitable elements.

> My software application export a report in the HTML format (both text
> and pictures) and I need to ensure the loction of the page breaks on
> paper.

Beware that specifically designated page breaks work well in a controlled
environment only. Issues like font size and paper size variation make it
hazardous in an open environment like the Web. You'll easily end up with
foolish printouts where a new page has just been started automatically, a
few lines printed on a fresh page, and then a page eject takes place because
your CSS code says so.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация