PHP report generator using MsWord

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jlising
Forum Commoner
Posts: 33
Joined: Mon Mar 19, 2007 1:48 am
Location: Pampanga, Philippines
Contact:

PHP report generator using MsWord

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
jlising
Forum Commoner
Posts: 33
Joined: Mon Mar 19, 2007 1:48 am
Location: Pampanga, Philippines
Contact:

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ezpdf features automatic wrapping and spanning.
Post Reply