Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Summary vs group footer
Message
From
24/07/2007 18:18:45
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01243318
Message ID:
01243325
Views:
25
>>I have a cursor created for a report. The report has 1 group and a report summary band. The report is grouped by business. Each record in the cursor has the number of employees at the business which will be printed only in the group header. How can I total the number of employees for all the business for use in the summary band. ALl the calculation methods I can think of total the employees for each record in the detail band.
>>
>>I'm thinking maybe I need to compute the number outside of the report and pass it in. Would that be the best way to do it?
>
>I can quickly think of number of methods, each idea is not tested.
>
>One idea would be to have some global array (you may create it in Report's DE Init method and remove even in some Destroy method or right after report (in this case you can create this array before report as well).
>
>The problem is, that you may need in advance to know number of your groups for this idea to work...

I am currently thinking to compute it before the report is called as in
index in business to myindex unique
sum FTE to Tot_FTE
set index to
* call the report etc.
It seems to work OK but I was wondering if it could be done fully with report variables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform