RE: [PHP] Printable Report Generator

From: Date: Sun, 08 Jul 2001 14:49:30 +0000
Subject: RE: [PHP] Printable Report Generator
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56763@lists.php.net to get a copy of this message
On 08-Jul-01 Keyser Soze wrote: > Hi!! I'm new on this list....and already have a problem :) > > I need to create a report to send it to printer based on datas from my > database.....firstly I tried pdf, but it's too hard to manage and it > generate big sized archives. > Any suggestions???? I'm assuming you want to veiw on your browser & have the browser print ? > There's any way to do it in plain html with line breaks and page breaks?? Ain't no such critter as a page break in html, but you can let the browser help out. All the versions i've worked with will avoid spliting a table across pages. So use that fact to nudge the wanted behaviour : <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0 BORDER=0> <TR><TD> <PRE> crank out 60 lines ... </PRE> </TD></TR> </TABLE> <!-- next page --> <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0 BORDER=0> <TR><TD> <PRE> 60 more lines ... </PRE> </TD></TR> </TABLE> repeat until you either run out of memory or lines ... > There's any free tool out there?? if you're writing html to disk, there's html2ps; i've no idea if it handles tables likewise. Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#56763) next »