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

Template to text

edited August 2004 in General
What's the easiest way of getting the text of a
report template?

thanks
: D

Comments

  • edited August 2004
    Hi Deck,

    Check out the following example of viewing and editing a binary template
    stored on a database as text using the internal Delphi methods used in
    ReportBuilder...

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

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    Deck wrote:

    send me your e-amil and you'll get free component for that!
  • edited August 2004
    thanks for the reply Nico but I'm afraid this is not
    exactly what I'm looking for. If I load a report
    template from a file written in prevous RB to latest RB,
    I want to know if there are any difference between the text
    template before and after loading in the latest RB.

    cheers
    Deck



  • edited August 2004
    Hi Deck,

    Sorry, I was unaware of what you were ultimately trying to accomplish.
    However the example I sent may turn out to be useful. If your templates on
    file are in binary format you will not be able to use the latest version of
    ReportBuilder to convert these templates to ASCII format without RB
    automatically updating the template. You can do something similar to the
    LoadTemplate method of the example using the Delphi routine
    ObjectBinaryToText to convert the old templates to text. Then after making
    a backup copy, load it in the latest version of RB and compare the text.

    --
    Best Regards,

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