Hi,
I'm having trouble with the Report Book feature when adding multiple reports and setting their Parameter values. I'm adding the same report multiple times to the Report Book but setting different parameter values for each report added. In short, the generated report book contains the correct number of reports but is only using one of the parameter values supplied. Thus all of the report book items are showning exactly the same thing.
I've debugged the report book when it is being created/setup and each report paramater value is as it should be. For some reason the rendered report is only using one of the paramter values for all of the report book items. It doesn't seem to make sense.
Here is my code (VB.net 3.5):
despatchItems is just a List of integer values that is used to set the parameter value of each report.
I'm using reporting version (latest version): Telerik_Reporting_Q1_2011_v5_0_11_316
This is done in WPF Vb.net 3.5 SP1 with the Telerik Reporting Viewer.
Any suggestions is greatly appreciated.
Thank you for your time.
I'm having trouble with the Report Book feature when adding multiple reports and setting their Parameter values. I'm adding the same report multiple times to the Report Book but setting different parameter values for each report added. In short, the generated report book contains the correct number of reports but is only using one of the parameter values supplied. Thus all of the report book items are showning exactly the same thing.
I've debugged the report book when it is being created/setup and each report paramater value is as it should be. For some reason the rendered report is only using one of the paramter values for all of the report book items. It doesn't seem to make sense.
Here is my code (VB.net 3.5):
Public
despatchItems
As
New
List(Of
Integer
)
despatchItems is just a List of integer values that is used to set the parameter value of each report.
Dim
batchDespatchNoteReport
As
New
ReportBook
For
x
As
Integer
= 0
To
despatchItems.Count - 1
batchDespatchNoteReport.Reports.Add(
New
DespatchReport())
batchDespatchNoteReport.Reports(x).ReportParameters(0).Value = despatchItems.Item(x)
batchDespatchNoteReport.Reports(x).PageNumberingStyle = PageNumberingStyle.ResetNumberingAndCount
Next
batchDespatchNoteReport.DocumentName =
"Despatch Note(s)"
rptViewer.Report = batchDespatchNoteReport
I'm using reporting version (latest version): Telerik_Reporting_Q1_2011_v5_0_11_316
This is done in WPF Vb.net 3.5 SP1 with the Telerik Reporting Viewer.
Any suggestions is greatly appreciated.
Thank you for your time.