ArchiveReader View in Panel
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
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
This discussion has been closed.
Comments
http://www.digital-metaphors.com./RBwIKI/Output/Preview/How_To...Preview_in_a_Panel
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I can already preview a "Report" in a panel, but thanks for the example.
As far as I can tell the TDBArchiveReader does not have "Report".
Thanks, Sidney
In the example replace ppReport1 with ppDBArchiveReader1.
Report, ArchiveReader, and ClientReport (RB Server) all descend from
Producer and share many of the same properties and methods. The
Viewer.Report property is of type TppProducer and PrintToDevices is a method
of TppProducer.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
This worked after I added a status bar and created a panel.
How can I add a watermark to the viewer so that when the user prints the
report it has the watermark on it?
Thanks, Sidney
The following article may be helpful.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Formatting/How_To...Manually_Add_a_Watermark_to_a_Page
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com