I want to convert my reports from ftBinary to ftAscii without actually loading the report, so that I can avoid loosng properties and objects, that do not exist.
ReportBuilder uses the built in Delphi routines ObjectBinaryToText and ObjectTextToBinary to convert from ascii to binary and back. If you were to save your template to a stream, you could use these methods yourself without loading a report. See the TppTemplate.BinaryStreamToTextStream and TppTemplate.TextStreamToBinaryStream methods located in the ppTmplat.pas file to see how it is done in ReportBuilder.
Comments
ReportBuilder uses the built in Delphi routines ObjectBinaryToText and
ObjectTextToBinary to convert from ascii to binary and back. If you were to
save your template to a stream, you could use these methods yourself without
loading a report. See the TppTemplate.BinaryStreamToTextStream and
TppTemplate.TextStreamToBinaryStream methods located in the ppTmplat.pas
file to see how it is done in ReportBuilder.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com