How to hide a SubReport and Show Other Subreport?
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com