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

Report In ppViewer

edited August 2002 in General
Hi,

I have several reports in a treelist that when in the viewer all do the same
thing. How can I assign a the report shown in the viewer to a temporary
variable. Like for instance... reportTemp := ppViewer.Report? So far my
error is incompatible type "TppReport" and "TppProducer". Any help
appreciated.

TIA,

Jada C. Case
Programmer
jada@signaldata.com

Comments

  • edited August 2002
    The Viewer.Report property is of type TppProducer, so that the Viewer can be
    shared by the ArchiveReader, Report (and now ClientReport) classes. If you
    have a variable of type TppReport, you'll just need to typecast it:

    reportTemp := TppReport(ppViewer1.Report);

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
This discussion has been closed.