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                                       [EMAIL PROTECTED]
-- 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.

-- 
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]

Reply via email to