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

Print Current Page in ppViewer

edited October 2007 in End User
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

Comments

  • edited October 2007
    Hi Patrick,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.