Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Q: How to convert ftBinary to ftASCII without actually loading the report

edited January 2005 in General
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.

TIA Bernd

Comments

  • edited January 2005
    Hi Bernd,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.