Hi,
I need to find out if there is some way for me to do checks in my report when it is generated. Currently I'm generating a report that receives a collection of objects as its datasource(via a bindingsource). Each of these objects in my collection is of type ITenderLineItem. This is an interface that I wrote. So basicly this list contains objects of different datatypes. They are: TenderSeries, TenderSection and TenderItem. All three these classes implements ITenderLineItem. Now in my report I'd like to display:
Summary Here
But at the moment I'm just getting my report to display all Items:
The way I see it is that I'd need to have some sort of check in my report to determine if the Item being added is a Series Item and then to insert a summary section to summarize the totals per series etc. This I can do by castig the object or calling the ToString() method and checking what gets returned. Problem is I don't know how to do this sort of testing in my report. What events should I use and what expressions do I need to add to my TextBoxes.
Regards
Jacobus
I need to find out if there is some way for me to do checks in my report when it is generated. Currently I'm generating a report that receives a collection of objects as its datasource(via a bindingsource). Each of these objects in my collection is of type ITenderLineItem. This is an interface that I wrote. So basicly this list contains objects of different datatypes. They are: TenderSeries, TenderSection and TenderItem. All three these classes implements ITenderLineItem. Now in my report I'd like to display:
Series/Section Nr | Item Nr | Description | Unit | Qty | Rate 1 | Amount 1 | Rate 2 | |
1000 | General | 0 | 0 --> Series | |||||
1000 | Section 1 | 0 | 0 | |||||
10.1 | Item 1 | 1000 | 1000 | |||||
10.1 | SubItem 1 | 2000 | 3000 | |||||
Summary Here |
(i) | SubSubItem 1 | mm2 | 5 | 4000 | 7000 | ||
2000 | Housing | 0 | 0 --> Series | |||||
2100 | Section 1 | 0 | 0 | |||||
21.1 | Item 1 | UNIT | 100 | 0 | 0 | |||
(i) | SubItem 1 | 0 | 0 | |||||
(i) | Sub-SubItem 1 | 0 | 0 |
Summary Here
But at the moment I'm just getting my report to display all Items:
Series/Section Nr | Item Nr | Description | Unit | Qty | Rate 1 | Amount 1 | Rate 2 | |
1000 | General | 0 | 0 | |||||
1000 | Section 1 | 0 | 0 | |||||
10.1 | Item 1 | 1000 | 1000 | |||||
10.1 | SubItem 1 | 2000 | 3000 | |||||
(i) | SubSubItem 1 | mm2 | 5 | 4000 | 7000 | |||
2000 | Housing | 0 | 0 | |||||
2100 | Section 1 | 0 | 0 | |||||
21.1 | Item 1 | UNIT | 100 | 0 | 0 | |||
(i) | SubItem 1 | 0 | 0 | |||||
(i) | Sub-SubItem 1 | 0 | 0 |
The way I see it is that I'd need to have some sort of check in my report to determine if the Item being added is a Series Item and then to insert a summary section to summarize the totals per series etc. This I can do by castig the object or calling the ToString() method and checking what gets returned. Problem is I don't know how to do this sort of testing in my report. What events should I use and what expressions do I need to add to my TextBoxes.
Regards
Jacobus