[Lazarus] [ISSUE] FCL-Web and LazReport

Graeme Geldenhuys graeme at geldenhuys.co.uk
Thu Jan 17 12:25:32 CET 2013

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).

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the Lazarus mailing list