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

ArchiveReader View in Panel

edited January 2010 in Devices
Hello:

I have report images store in blob fields in my database and am using a
TppDBArchiveReader to display the original report image.

I would like to embed the output on a TPanel on a TTabsheet on my form.
I get an access violation when I attempt ArchiveReader.PreviewForm.Parent :=
ImagePanel;

I am able to display all my "Live" reports this way suing a
TppDefaultPreviewer using:
DefaultPreviewer := TppPrintPreview.Create(Self);
DefaultPreviewer.Parent := DefaultPreviewerPanel;
DefaultPreviewer.Report := Report;
DefaultPreviewer.Init;
TppViewer(DefaultPreviewer.Viewer).Report := Report;
Report.PrintToDevices;

How can I embed the output of the TppDBArchiveReader on the panel?

Thanks, Sidney

Comments

This discussion has been closed.