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

How to hide a SubReport and Show Other Subreport?

edited June 2008 in General
Hello, I have 2 sub-reports, but, I want to do these:

SubReport1.Visible := (PageNo < 5)
SubReport2.Visible := (PageNo >= 5)

but... when PageNo <5 works fine.. when >=5 show me nothing... and
report builder always generate a new blank page.. and not show me
SubReport2.

How I do these?

Best Regards,

--
T.·.F.·.A.·.
Fellipe Henrique
http://www.linkedin.com/in/fellipehenrique
Sou a FAVOR da lei 0607/2007.

Comments

  • edited June 2008
    Hi Fellipe,

    Which version of ReportBuilder and Delphi are you using? Which event are
    you setting the visibility of the subreports? Are there any groups in your
    report?

    Instead of using the PageNo property, try using the AbsolutePageNo property
    to get the actual page number of the entire 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.