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

resettomg tppviewer's page limits

edited April 2002 in General
I have a custom print preview where the user can filter which records to
display. The report might start with a length of 20 pages and after
filtering might be only 5 pages. However, although the report renders
correctly on 5 pages the viewer appears to think there is still 20 pages
with the last 15 pages being blank. I tried tppViewer.reset with no luck.
Any suggestions? thanks.

Comments

  • edited May 2002
    After applying the new filter to the report you need to tell the viewer to
    regenerate the report:

    TppViewer(ppReport1.PreviewForm.Viewer).RegenerateReport;

    See the demo below for an example of applying filters during preview.

    www.digital-metaphors.com/tips/FilterDuringPreview.zip

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.