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

PassSetting issue mainreport with pbSection style subreports

edited June 2008 in General
Hi,

I have a mainreport for which its PassSetting is set to psOnePass.
The mainreport only contains a detailband to hold the dynamically loaded
pbSection style subreports.
Some off those subreports will have psOnePass, others will have psTwoPass as
PassSetting.

Now when i print the mainreport the PassSetting for all subreports will be
set to the PassSetting off the mainreport. All psTwoPass subreports are
printed wrong.
When i set my mainreport to psTwoPass printing will be ok but the process
will take alot longer because all my subreports will be psTwoPass.
My mainreport is just a container off pbSection style subreports, why can't
reportbuilder pass each individual subreport according its PassSetting.

Some reports need psTwoPass, because we need to adjust the PageStyle band on
the last page for those reports.
Is there any other way to detect the last printed page off a report in any
off the TppPageStyle events?
Can we adjust components from the TppPageStyle band in fi TppSummaryBand
BeforeGenerate?

Greetings
Filip Moons

Comments

  • edited June 2008
    Hi Filip,


    ReportBuilder is not designed to handle multiple pass settings per report.
    The entire report can either be one pass or two pass.


    Unfortunately no, the nature of the PageStyle band is that it prints behind
    every other band inside the report. This means that it must generate its
    drawcommands first so by the time the Summary band prints, the PageStyle has
    already finished.

    A workaround would be to create a separate report that loads each subreport
    that needs to adjust it's pagestyle then print that behind the scenes to a
    generic TppDevice object to simply calculate any spacing/pagination values
    before printing the main report.

    --
    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.