Count datarows in subreport

Stimulsoft Reports.NET discussion
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Count datarows in subreport

Post by ChristianH »

Regarding my original problem with counting datarows: I now have a new report structure:

I´ve got a mainpage where I a place a subreport (subreport1) ten times on one page (two columns, five rows)

Into subreport1 I´d like to place another subreport (subreport2) with the hierarchical band where I have to count datarows.
The number of datarows in subreport2 again determines the height of subreport2 in subreport1.
The problem now is, that subreport2 is called ten times (plus some more counts !?) and so the number of rows is counting up wrong.

Isn´t there an easier way to get the number of rows of the hierarchical band?
I would be happy if I just could get the number of datarows in one of my datatables.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Count datarows in subreport

Post by Guest »

You can zeroize the CountRow variable when the subreport2 is call(BeforePrintEvent for Subreport2)

Thank you.
Post Reply