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

Invalid Template Format

edited October 2008 in General
I am using Delphi 2007 with Report Builder 10.9 and ElevateDB.

I have installed the DADE for ElevateDB, changing ValidDatabaseTypes in
daElevateDB.pas from dtNexusDB to dtElevateDB.

Using the ElevateDB version of the EndUser demo program, I have managed to:

. create a report
. save the report into the rbItem table.
. However, if I try to open the report subsequently, I receive an
Invalid Template Format error.

If I export the Template field of the rbItem table to a file (X.rtm), I
am able to load this report file sucessfully and run the report.
Therefore, the template format would seem to be valid.

When the program checks the StreamType in the LoadFromStream method, the
IsValidBinarySignature returns false, even though the first 4 characters
are TPF0. The offset is set to 0.

Do you have any suggestions?

Richard Harding

Comments

  • edited October 2008

    I installed ElevateDB, (ver 2.02), tested the example and was able to
    duplicate the error.

    After much research, I discovered the solution....

    Select the qryItemUpdate component. Use the Object Inspector to access the
    Params property. There is a single param, called ItemID. Modify the
    ParamType from ptUnknown to ptInput. Build and run.

    I also updated the example that can be downloaded from our server

    http://www.digital-metaphors.com/rcl/dade/daElevateDB.zip


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    Wonderful, many thanks for your help.

    Richard Harding . . .


This discussion has been closed.