Re: New Page Escape Sequence
| From: | chip | Date: | Tue, 04 Dec 2001 19:21:13 +0000 |
| Subject: | Re: New Page Escape Sequence | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76577@lists.php.net to get a copy of this message | ||
On Tuesday 04 December 2001 12:30 am, Manuel Lemos wrote:
> 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
I know it exists also, it is supposedly supported by the two 'main' browsers,
but it doesn't work as expected. I tried the style sheet method, inline and
external, and found it works with IE more often then Netscape, and then only
sometimes on some printers, but not always, so YMMV.
--
Chip