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

TppArchiveReader and WPtools

edited December 2005 in Devices
Hi. I am using wpTools 5, ReporBuilder 9 and Delphi 2005.
Normal Reports with TppWPRichText works just fine and can be saved to the
Report Builder Archive format (RAF).
The problem is when the TppArchiveReader tries to print/preview RAF files
that contain TppWPRichText objects resulting in "Error reading
TppDrawWPTRichText.EMFStrem".

Any ideas?

Comments

  • edited December 2005

    Make sure that to include the relevant WPTools units in the 'uses' clause of
    the ArchiveReader app (if its a separate app).

    Otherwise, you might contact WPTools about this..



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2005
    Its within the same application, and the WPTools units should be ok since
    the report creating the RAF file works fine.

  • edited December 2005

    1. Check the declaration of the TppDrawWPTRichText class and make sure that
    TppDrawWPTRichText.EMFStrem is declared as a published property and that it
    is supported in the Assign method.

    2. Modify the Delphi environment library path to include RBuilder\Source and
    the WPTools source. Then set the debugger to break on Delphi language
    exceptions. Run the test and check the call stack when it breaks on the
    exception.

    3. The reading and writing of the Page objects to/from to the archive file
    uses standard Delphi object persistence (write component/ read component).
    For archiving to work, the Page.DrawCommands[] must to be streamable (which
    is what number 1 above is about). We do not haveWP Tools or the WP Tools/RB
    integeration classes here - that was all done by WP Tools. You might contact
    their tech support and ask whether they have tested it in an archive (.raf).



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.