Everything works okay in Q12009, however, after I upgraded to Q2, I got "World is not Supported" error, just seeking for any suggestions.
I use the following code to generate and preview the report
Dim reportType As Type = Type.[GetType](String.Format("AgentLive.{0}, AgentLive, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", reportName)) |
Dim report As IReportDocument = DirectCast(Activator.CreateInstance(reportType), IReportDocument) |
Me.ReportViewer1.Report = report |
And at report code-behind
Private Sub dbReport_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.NeedDataSource |
Dim report As Telerik.Reporting.Processing.Report = DirectCast(sender, Telerik.Reporting.Processing.Report) |
report.DataSource = PrepareDBRPT(dbSource) |
End Sub |
Private Sub detail_ItemDataBound(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound |
Dim detail As Telerik.Reporting.Processing.DetailSection = DirectCast(sender, Telerik.Reporting.Processing.DetailSection) |
Dim section As Processing.DetailSection = TryCast(sender, Processing.DetailSection) |
'Customize something |
End Sub |