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

Pagecount in a viewer

edited September 2004 in General
Hi all,

I have a Viewer form like in Your demos, where the page number and page
count is shown in an editmask field.
The Viewer is beeing used for both reports and archive files. Since
PageCount is a property from the report / archive, I need to do a test in
order to decide wich one I'm using to get the PageCount.

Something like

if ppViewer.producer = TppCustomArchiveReader then
EditMask.text :=
IntToStr(TppArchiveReader(ppViewer.Report).ArchivePageCount)
else
EditMask.text := IntToStr(TppReport(ppViewer.Report).ReportPageCount)


Can someone help ?

Thanks

Petter
D7
RB7

Comments

This discussion has been closed.