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

More newbie questions

edited September 2002 in General
Hi !

I have opened a report using the ArchiveReader, and a ppViewer.
What are the steps to release the archive-file for other processes like
renaming or overwriting of the file ?

Petter

Comments

  • edited September 2002
    You can call ArchiveReader.Reset to close the file. Then it will be safe to
    manipulate the archive file. as long as you don't use the archive reader to
    request any pages for a device that is currently in use. If a device asks
    the archive reader for a page, it will try to go get it from the archive
    file.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks again Jim this works fine,

    I have one more question.
    After having loaded av report in the Viewer, how do I clear the Viewer
    window (Also the White page) ?

    Thanks
    Petter


  • edited September 2002
    You can call Viewer.RegenerateReport to make the first page request of the
    new report so that it shows that in the viewer.

    To clear the viewer to be empty white space, call:

    Viewer.CurrentPage.FreeDrawCommands;
    Viewer.ScreenDevice.RenderPage;
    Viewer.RefreshPage;


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.