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

infinite calculation of pages

edited April 2004 in Subreports
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

Comments

  • edited April 2004
    Hi Dan,

    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;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2004
    I had a similar problem in my report when adding a footer to the report. I
    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.


This discussion has been closed.