Hi!
We have a complex scenario where it's necessary to programmatically create the reports. This is the typical scenario of building the report:
1. The report layout and properties are set.
2. Report items are added to the report, e.g. a Chart.
3. The properties of the Chart is set and since we are binding to a dataset of unknown contents we register to the NeedDataSource event.
4. The NeedDataSource event is triggered and the datasource is set.
5. The Report is displayed in the ReportViewer.
Here's my question: We need to specifiy properties for the series created after the report items have been databound, e.g. DefaulLabelValue/DataLabelsColumn etc.. We've tried setting these values by looping through the ChartSeries collection in the ItemDataBound event but without any success.
How do you suggest this is done?
Regards
Linus
We have a complex scenario where it's necessary to programmatically create the reports. This is the typical scenario of building the report:
1. The report layout and properties are set.
2. Report items are added to the report, e.g. a Chart.
3. The properties of the Chart is set and since we are binding to a dataset of unknown contents we register to the NeedDataSource event.
4. The NeedDataSource event is triggered and the datasource is set.
5. The Report is displayed in the ReportViewer.
Here's my question: We need to specifiy properties for the series created after the report items have been databound, e.g. DefaulLabelValue/DataLabelsColumn etc.. We've tried setting these values by looping through the ChartSeries collection in the ItemDataBound event but without any success.
How do you suggest this is done?
Regards
Linus