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

Get PageCount from Report Before Print

edited May 2011 in General
Hello
I wonder if there is any way to get the total number of pages in the report
without displaying it.
The idea is to know the amount of pages before the printing process.
Is there any way to do this?

Thank you very much.

Regarts,

Eliseu.

Comments

  • edited May 2011
    Hi Eliseu,

    The report must be generated in order to determine how many pages are
    present. One option is to create a generic TppDevice, connect its
    publisher to the report's and call Report.PrintToDevices.

    You could then keep track of the number of pages received by
    implementing and event that fires for each page. (Report.StartPage,
    Device.OnPageReceive, etc.)


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2011
    Esta é uma mensagem em várias partes no formato MIME.
This discussion has been closed.