Print Current Page in ppViewer
RB v10.06, D7, Advantage DB
----------------------------------
We have created a report viewer on a form and everything works fine
(navigation, zoom, etc.). However, when we try to print the "current page"
only, it prints the first page.
ppReport (TppReport)
ppViewer (TppViewer)
code snippet...
ppReport.DeviceType := dtPrinter;
ppViewer.Report.Print;
When the Printer dialog is displayed, we select the "Current Page" option
and click OK. Instead of printing the current page (single page Invoice),
it prints the first Invoice.
Any ideas?
Patrick
----------------------------------
We have created a report viewer on a form and everything works fine
(navigation, zoom, etc.). However, when we try to print the "current page"
only, it prints the first page.
ppReport (TppReport)
ppViewer (TppViewer)
code snippet...
ppReport.DeviceType := dtPrinter;
ppViewer.Report.Print;
When the Printer dialog is displayed, we select the "Current Page" option
and click OK. Instead of printing the current page (single page Invoice),
it prints the first Invoice.
Any ideas?
Patrick
This discussion has been closed.
Comments
When printing directly from the TppViewer, you will need to update the
Report.CurrentPage in order to print the current page from the print dialog.
Otherwise, the report does not have a concept of which page is the current
page.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com