Re: [PHP] command to determine the end of a page?
I tried to do what your talking about, never found a way, other then guessing where it would end with a lot of test runs. We ended up switching to writing out PDF's which is much more scientific where you can just check X,Y coordinates to see where you are on the page. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 13:08, Jeff Bluemel wrote: is there a php command that could determine if the end of a page has been reached according to their print driver? I'm need to print out a report that could be multiple pages. I need to be able to put column headings page numbers. thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] command to determine the end of a page?
Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... On Thursday 31 October 2002 10:08 am, Jeff Bluemel wrote: is there a php command that could determine if the end of a page has been reached according to their print driver? I'm need to print out a report that could be multiple pages. I need to be able to put column headings page numbers. thanks, Jeff -- Prisons are built with stones of Law, Brothels with bricks of Religion. -William Blake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] command to determine the end of a page?
[snip] Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... [/snip] You may want to try the FPDF class ... http://www.fpdf.org HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] command to determine the end of a page?
I am very unfamiliar with printing from PHP, but could you just guess how many lines per page you want to print and after that many lines issue a page break then print your header for the next page? Once you have it working you can tweak the line per page to where they fill a whole sheet of paper. It's a quick and dirty way of printing reports that I use in our DOS based accounting system. Carl On Thursday 31 October 2002 10:08 am, Jeff Bluemel wrote: is there a php command that could determine if the end of a page has been reached according to their print driver? I'm need to print out a report that could be multiple pages. I need to be able to put column headings page numbers. thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] command to determine the end of a page?
only problem with that is I believe it is going to change depending on what printer the user has. what looks good on mine may not be quite right for the next person. Carl Brandenburg [EMAIL PROTECTED] wrote in message news:ADEKJJAMOOACODPFNFAPAECLCDAA.tongo;bossig.com... I am very unfamiliar with printing from PHP, but could you just guess how many lines per page you want to print and after that many lines issue a page break then print your header for the next page? Once you have it working you can tweak the line per page to where they fill a whole sheet of paper. It's a quick and dirty way of printing reports that I use in our DOS based accounting system. Carl On Thursday 31 October 2002 10:08 am, Jeff Bluemel wrote: is there a php command that could determine if the end of a page has been reached according to their print driver? I'm need to print out a report that could be multiple pages. I need to be able to put column headings page numbers. thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] command to determine the end of a page?
actually Jay - I think inadvertently you answered my question better then I was really looking for. I originally wanted to do this with PDF, but the costs for pdflib were just too high, and I wouldn't find an open source/free solution. I will have to take a look at fpdf, and see if I can use it. if not then I guess I'll turn to java script which would be acceptable too. Jay Blanchard [EMAIL PROTECTED] wrote in message news:003d01c28109$9ff641c0$8102a8c0;000347D72515... [snip] Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... [/snip] You may want to try the FPDF class ... http://www.fpdf.org @HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] command to determine the end of a page?
[snip] only problem with that is I believe it is going to change depending on what printer the user has. what looks good on mine may not be quite right for the next person. [/snip] The FPDF class (http://www.fpdf.org) has a SetAutoPageBreak() function which sets the page break at a certain distance from the bottom of the page which may work for you. HTH Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] command to determine the end of a page?
When you use, FPDF class (i think others pdf class too), you can setup the paper size in the document (pdf), but the printer don't care this paper size configuration and prints with the default paper size, and my printer don't have a custom size setup. Do you know who to print with custom size? Thanks, RB From: Jay Blanchard [EMAIL PROTECTED] To: 'Evan Nemerson' [EMAIL PROTECTED], 'Jeff Bluemel' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] command to determine the end of a page? Date: Thu, 31 Oct 2002 12:16:24 -0600 [snip] Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... [/snip] You may want to try the FPDF class ... http://www.fpdf.org @HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Charla con tus amigos en lĂnea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php