infinite calculation of pages
Hi,
Ive got a Report with this format
//Invisible
<//Main Report>
if Data Overflows, Sub Report 2 is made visible, but on the calc tab I have
a statement:
where :
if SubReport2.dbmemo <> '' then
SubReport2.visible := True
I get an undeclared identifier SubReport2.visible. Why?
and When the data on Sub Report 2 exceeds the length of Sub Report 2, Report
Builder calculates the number of pages infinitely. I know i must have
switched a property on or off because it used to work earlier. What method
is it?
Thanks
Dan
Ive got a Report with this format
//Invisible
<//Main Report>
if Data Overflows, Sub Report 2 is made visible, but on the calc tab I have
a statement:
where :
if SubReport2.dbmemo <> '' then
SubReport2.visible := True
I get an undeclared identifier SubReport2.visible. Why?
and When the data on Sub Report 2 exceeds the length of Sub Report 2, Report
Builder calculates the number of pages infinitely. I know i must have
switched a property on or off because it used to work earlier. What method
is it?
Thanks
Dan
This discussion has been closed.
Comments
Be sure the Report.AutoStop property is set to True. I am unsure why you
are receiving an error when trying to set the visibility of the subreport.
At design time are you able to toggle the visibility and preview correctly?
Be sure you are using the correct name of the subreport2 at runtime. One
thing to note... Subreport2.dbmemo is not a current property of the
TppSubreport. You can access all the objects created in a report by their
original names directly:
if dbmemo.Text <> '' then
SubReport2.Visible := True;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
later discovered that the footer plus the subreport were too big for one
page. To stop it from geneterating infinite pages i had to make sure that
the subreport plus the footer would fit on one page.