[Lazarus] [ISSUE] FCL-Web and LazReport

Michael Van Canneyt michael at freepascal.org
Thu Jan 17 12:53:12 CET 2013



On Thu, 17 Jan 2013, Graeme Geldenhuys wrote:

> On 01/17/13 10:52, silvioprog wrote:
>>
>> I've been thinking of porting jsPDF for Free Pascal:
>
>
> fpGUI also has a small PDF reporting engine. To see what it can do, take
> a look at the demo in <fpgui>\examples\gui\reporting
>
> Some features:
>  * Text output (obviously)
>  * Text attributes (color, size, font, alignment etc)
>  * Image support
>  * Drawing primitives
>  * Headers, Footers
>  * Sections
>  * Grids
>  * Page numbers, Section numbers
>  * Page attributes (landscape, portrait, mixed, pages sizes etc)
>  * PDF attributes (eg: when file is opened go full screen or 2-up etc)
>  * Print Preview (this is dependent on fpGUI of course, but it is a
>       separate unit, so isn't a problem)
>
> It doesn't bind to datasets etc. You simply iterate whatever data you
> want, and write whatever to the PDF's canvas. This gives you the most
> flexibility and allows creating reports from anything (business objects,
> datasets, stringgrid etc).
>
> Currently the PDF engine has very little dependency on fpGUI - a data
> type which could be easily redefined in the reporting unit itself, and
> some color utility methods, which again could be redefined in the
> reporting units themselves.
>
> I'm using this PDF engine to generate rather complex reports in our
> commercial apps, reporting from tiOPF-based business objects. It works
> very well.
>
> An French developer wrote and contributed this to the fpGUI project.
> Some classes and methods are still in French though, but if you look at
> the demo project and its demo reports, it is easy to figure out. We are
> still working on translating everything to English. If you do try it out
> and hit a problem, you are welcome to post questions in the
> fpgui.support newsgroup (see the website for details).

Well, I was looking at this too for a PDF backend.

Finally, it was the dependency on fpGUI that stopped me from using it.

If we can make sure there is no such dependency, 
I'd very much like to have it in FPC itself.

Michael.




More information about the Lazarus mailing list