TppArchiveReader and WPtools
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?
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?
This discussion has been closed.
Comments
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
the report creating the RAF file works fine.
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