[Lazarus] Looking for a reporting solution

Leonardo M. Ramé l.rame at griensu.com
Sun Nov 27 23:54:24 CET 2011


Hi, I'm looking for a method to allow me do what I do on Windows using
FastReport, but in a cross platform way. 

I need to let the user create a block of rich text with images for a header
and footer, then a variable size block of rich text for the main
content. Joining all three blocks forms a document, this document can be
previewed and printed.

On Delphi, with FastReport, this is easy, all three blocks are RTF
files, and the report engine handles page breaks, margins and everything
automatically.

Now, with Lazarus/FreePascal, I don't know if LazReport accept RTF
files, and I think it doesn't. So, maybe I can use lzRichEdit to allow
the user create the text in a more or less WYSIWYG way, but as far as I
know, it doesn't have a method to print.

Going further, I'm thinking of parsing the RTF files and create a PDF
using fpVectorial, but I don't know how to handle page breaks, headers
and footers.

How do you think I can solve this problem?.

Regards,
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list