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

Converting report template to ascii

edited January 2004 in General
I'm using Report Builder 6.02 with Delphi 5. I have a lot of report
templates stored in binary, many of them using variables and code embedded
in it. I want to convert all of them to ascii format, so as to edit them
manually without opening it in the respective form.
I created a program that open in sequence all the rtm's and save in ascii.
But the reports that have variables and code in RAP, gives an error and I
can not convert them automatically.
How can I avoid that?
Is there something else I can do for converting the format to ascii?
Thanks

Daniel Alvarez
IMS Soluciones Tecnol?gicas S.A.

Comments

  • edited January 2004
    Hi Daniel,

    How are you converting them manually? Your best bet would be to stream the
    binary template files and then call the Delphi method ObjectBinaryToText on
    them (see the Delphi help for more information). This is essentially what
    ReportBuilder does when it saves a template as either ascii or binary. The
    following example streams binary template files from a BLOB field in a
    database and converts them to text before letting the user edit them and
    save them back (as binary files) to the database.

    http://www.digital-metaphors.com/tips/EditTemplatesAsText.zip


    --
    Best Regards,

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