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

Change report in preview window

edited December 2007 in General
Hi,

I'm using Delphi 5 and Report Builder 6

I have a customized preview form, registered with ppRegisterForm().

I have an ArchiveReader on my main form to open a report from a .raf file,
and it opens OK in the Preview.

When I open a second report from file, (from the Preview form this time,
using a second Archive Reader), it opens in a new Preview form. How can I
open it in the existing form, replacing the first report?

John

Comments

  • edited December 2007

    - Calling the Report/ArchiveReader Print method will result in a preview
    form being created and shown.

    - The Report/ArchiveReader PrintToDevices method can be used to render a
    report to connected devices.

    myViewer.Report := myArchiveReader;
    myArchiveReader.PrintToDevices;

    - Have not tried to do what you describe, but my first thought would be to
    use only one ArchiveReader.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

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