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

Comparing templates RAP code

edited November 2005 in RAP
Hi there,

I am wanting to compare two templates to see if they are semantically the
same (from Report Builder 8.02). If you view a template as a text file, all
the RAP code is Hex encoded. How can I decode this so I can see all RAP code
in the template without having to use two designers and do a visual
comparison, which is time consuming and error prone.

Is there a way to use the ppDesginer component to extract all the text used
in the events or a way to decode the HEX ?

Thanks for your help.

Comments

  • edited November 2005
    Sorry, it is Report Builder 6.03 that is being used.

    Paul Broadfoot

    --- posted by geoForum on http://delphi.newswhat.com
  • edited December 2005
    You want to camparer code-font or layouts?


  • edited December 2005
    I want to compare the pascal code embedded in the template. This is the code
    that a user could write if you exposed the Calc page for the ppDesigner
    component.

    From what I can see the code is saved in a hex format, but I do not know how
    to decode it. (View the rtm file in notepad to see this). I can compare them
    using a text comparison, but that just points out one hex line is different
    to the next. (eg If a comment has been added you will have the hex code for
    '{' and '}' and so the text compare would just say the line was different,
    and its a lot of manual decoding to see if this a comment has caused the
    difference or not.

    The other way to extract the text would be through the ppDesigner, but I do
    not have the source code for the unit that codes the calc page. (raIDE.dcu
    only). So I do not know the object model for looping through events and
    getting the code that was written for that event.

    So either I need to know how to decode the Hex, or how to loop through the
    events so I can write out all the code for two templates to a file for
    comparison.

    Hope this helps in understanding what I need to do.

  • edited December 2005
    search on RAP2Text


  • edited December 2005
    >search on RAP2Text
    Thanks.

    After doing a google search I found an archived thread on this and have
    contacted support to see if can get this program.

    Paul Broadfoot

    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.