Converting report template to ascii
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.
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.
This discussion has been closed.
Comments
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
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com