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

OnEndSecondPass not firing

edited April 2015 in General
Hi, using RB 16.0, XE7 update 1

We have one report where the OnEndSecondPass event only fires the first
time the report is generated. Subsequently, the OnStartSecondPass fires,
but OnEndSecondPass does not - even if I set that event directly before
generating the report (the event is not being un-set regardless). For
other reports all seems fine.

Any ideas what may be causing this?

Regards,
Steve

Comments

  • edited April 2015
    Hi Steve,

    The OnEndSecondPass event fires once the last page of the report has
    been received/generated. Starting with RB 14, in order to support
    continuous page scrolling, the first 100 pages are generated in the
    background by default. This means that if your report is 100 pages or
    less, the OnEndSecondPass event will fire automatically.

    If your report is more than 100 pages, the event will not fire until the
    last page is viewed/generated. You can force ReportBuilder to generate
    all pages by setting the PreviewFormSettings.PageIncrement property to 0
    (TppViewer.PageIncrement if you are using the viewer).

    Best Regards,

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