RE: [PHP] New Page Escape Sequence

From: Date: Tue, 04 Dec 2001 22:35:09 +0000
Subject: RE: [PHP] New Page Escape Sequence
Groups: php.general 
Request: Send a blank email to php-general+get-76616@lists.php.net to get a copy of this message
if it's just a plain text file then, in theory, you can insert a FF character (0x0C) but as mentioned, this might not work on all printers. if you're using html, try using: <br style="page-break-before: always;"> or put the style in some other tag if it doesn't work for <br> there's also "page-break-after: always;" that you could use... -----Original Message----- From: Manuel Lemos [mailto:mlemos@acm.org] Sent: Wednesday, December 05, 2001 7:20 AM To: php-general@lists.php.net; Chip; Robert Samuel White Subject: Re: [PHP] New Page Escape Sequence Hello, Chip wrote: > > On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote: > > I wish to take some information out of a database and create a text > > file with the information, nicely formatted. Does any one know of an > > escape sequence that works as a "new page" indicator for printing??? > > I did some checking into this also, some time back. All the responses I got > then were it's not possible to cover all types of printers and OS's available > with just a certain escape sequence or other code. > > If you get a better answer, would you please copy me on it? In theory, the right way to achieve that is to put style attribute in the first paragraph the page that tells to break the page before the paragraph. I know that the attribute exists, but I don't know how many browsers obey it when they print the page. Maybe it is safe to resort to PDF. Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#76616) next »