Re: [PHP] New Page Escape Sequence

2001-12-04 Thread Manuel Lemos

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] New Page Escape Sequence

2001-12-04 Thread chip

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] New Page Escape Sequence

2001-12-04 Thread Manuel Lemos

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] New Page Escape Sequence

2001-12-04 Thread Martin Towell

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:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 7:20 AM
To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] New Page Escape Sequence

2001-12-04 Thread chip

On Tuesday 04 December 2001 02:35 pm, Martin Towell wrote:
 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...

Unfortanately this does not work all the time, in all browsers, on all 
printers, etc etc.
I've tried it, it just wasn't reliable enough to make the appropriate changes 
to many pages, so I've just left them to be printed the way the individuals 
printer wants to print them, after all, you also can't control how the 
margins will appear, etc.

--
chip

 -Original Message-
 From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 7:20 AM
 To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] New Page Escape Sequence

2001-12-03 Thread chip

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?

--
Chip
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]