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 ?
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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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
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
http://www.digital-metaphors.com
info@digital-metaphors.com