Here is my setup.
I have a webpage that contains a viewer. When a user request this page, the code will call a web service. This webservice contains many classes that each contain data that needs to be shown on the web page, so I have the code creating a datatable from the specific fields I need for the report. I then want to set the report's datasource to this datatable. Currently it is only showing 2 records, and the report is created with 2 records, but no data is visible in the fields.
Here is the code from the page.load event for the page containing the report viewer:
Me.CreatePickTicketColumns() |
Me.GetPickTickets() |
|
Dim subRpt As Telerik.Reporting.Report = New TelerikReports.PickTicketDetail |
Dim mainRpt As Telerik.Reporting.Report = New TelerikReports.PickTicket |
|
mainRpt.DataSource = Me._dtPickTicketHdr |
Me.ReportViewer1.Report = mainRpt |
The GetPickTickets method is calling the web service and adding rows with specific data to the datatable that is getting set as the datasource for the main report. The web service call will also create the datatable for the subreport but I haven't coded that yet since I cannot get the header data to display yet.
I can send the project since it is quite small but you probably would not have access to the webservice.
Thanks.