Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

RTF based reporting engine & OpenOffice RTF support

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I've converted a old RTF reporting engine used in the tiOPF project (and Delphi) to work with Free Pascal. The reporting engine loads up a template rtf document, populates the defined fields and outputs a new rtf document.

Everything works fine, unless the template document is edited with OpenOffice (MS Office and WordPad works fine). OpenOffice seems to leave out a ending brace at the end of the document and the resulting rtf file cannot be viewed. Simply opening the result.rtf file and adding the ending '}' fixes the problem.

Anybody have any experience with OpenOffice and RTF documents? Is this a know bug? As I mentioned, editing the template file with MS Office and WordPad works fine.

BTW:
I'll generalize the code to work with Lazarus as well. The RTF reporting engine can report from TtiObject/TtiObjectList data and TDataset data. I'll IFDEF the tiOPF specific support or convert it to TObject/TObjectList data. I think it would be nice for Lazarus to have an alternative reporting system compared to FreeReports.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Anybody have any experience with OpenOffice and RTF documents? Is this a know bug? As I mentioned, editing the template file with MS Office and WordPad works fine.

Don't worry. It only seems to be an issue if you convert an old MS Office .rtf file to a new .rtf file with OpenOffice. Designing the template reports from scratch with OpenOffice and then viewing the final populated report with MS Office or OpenOffice works perfectly! :-)

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email