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/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
