I am converting some Crystal Reports to telerik reporting. We use XML that is stored in a database as the datasource and already use the readxml method to load a dataset. That works fine. I am using the following code to instantiate the report viewer, I got this from the samples included with the trial download. It works and I get the report on screen. My problem is that I don't find a 'DataSource' property suggested in option 2 of a previous thread on any of the objects below in which to assign my dataset. I'm sure that I'm missing something simple, but have looked for several hours and haven't found it. Can you help?
Dim reportName As String = Server.UrlDecode(sReportName.ToString) |
If Not String.IsNullOrEmpty(reportName) Then |
Dim reportType As TypeType = Type.[GetType](reportName) |
Dim report As IReportDocument = DirectCast(Activator.CreateInstance(reportType), IReportDocument) |
Me.ReportViewer1.Report = report |
Me.Page.Title = "Reports - " + ReportTitle.ToString |
End If |