resettomg tppviewer's page limits
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com