You are here: Re: Report writing in PHP - what tools for making formating nice? « PHP Programming Language « IT news, forums, messages
Re: Report writing in PHP - what tools for making formating nice?

Posted by NC on 11/03/05 18:36

Dave Smithz wrote:
>
> A client of mine wants to start generating some reports from their PHP /
> MYSQL database.
>
> They were previously gathering data from the screen and cutting and pasting
> it into a Word document template. They now just want to generate it.
>
> My initial thoughts are to just format the information in a table and then
> they print it out. But due to the dynamic nature of the reports and what is
> included, there might be issues with regard to the width fitting on a piece
> of paper, and the general format will not look as good as a Word document
> would.
>
> What ways could I approach this problem? Is there anything available which
> would make report formatting attractive and easy?

You can generate reports in either PDF or RTF.

The exact approach to generating PDF would depend on what PDF
generation tool(s) you use. There are at least two PDF generation
extensions bundled with PHP; there are also "pure PHP" tools such as
FPDF that are somewhat slower, but do not require any particular PHP
extension to be available (helpful for hosted applications).

If you want to use RTF (which is readable by most word processors)
instead, take a look here:

http://groups.google.com/group/alt.php/msg/fc914bd0d0a120fc

This is my old post to alt.php where I show how to build a simple
"report" (actually, a set of mailing labels) without having to learn a
lot about RTF.

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация