Page 1 of 1

PHP report generator using MsWord

Posted: Tue Apr 10, 2007 12:32 am
by jlising
Hello,

I have an application written in PHP. The use of this application is mainly recording the companies and contacts. One feature of the application is to produce a report ( a printable report). Currently I am using html format then export it to MS Word to print the records. My problem is, every time I export a report I must adjust or change page setup before printing. Is there a way to generate report that is ready for printing without changing the page settings?

Thanks!
Jessie

Posted: Tue Apr 10, 2007 12:48 am
by feyd
For printing purposes, I typically provide the ability to get the page content as a PDF. There are many libraries available that can create PDF files. fpdf and ezpdf are the most commonly used that I'm aware of.

Posted: Tue Apr 10, 2007 1:21 am
by jlising
Thanks feyd!

I created a sample page using the fpdf you mentioned. I created a sample report using the fpdf table feature. My question is, how can I wrap the text within a table cell? Some data overlaps to the next cell.

Posted: Tue Apr 10, 2007 2:48 am
by feyd
ezpdf features automatic wrapping and spanning.