8 Answers, 1 is accepted
Thank you for your interest in Telerik Reporting and up to your questions:
- yes you can combine two or more reports into a single exported document with the help of our newly introduced ReportBook feature. You can find more info on how to use it in this help article.
- if you mean including the asp.net chart control in the reports - this is not possible. External controls cannot be hosted by the Reporting product. If you need to show charts in the report, you can use the chart report item, which uses the same engine.
Sincerely yours,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

Using existing datasources for a report is possible - please elaborate on how you're trying to wire things up, so that we can provide assistance.
As for using stored procedures, Telerik Reporting does not provide its own data layer but depends on the existing .NET objects (DataSet, Data Table, DataView, ADO.NET, lists - for more information on report data binding, please, refer to this help topic). Because of that, the Telerik Reporting Data Source Wizard cannot be used to connect to parameterized data source such as stored procedure or a Select command with parameters out of the box.
What can be done is to manually execute it, feed the returned result set in a DataSet and then pass this DataSet to the Telerik Reporting DataSource. Another approach using our report parameters and NeedDataSource event is shown in this KB article.
For more information how to use ADO.NET to call a parameterized stored procedure, please refer to this KB article.
Best wishes,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

Private Sub MyReport_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) _ |
Handles MyBase.NeedDataSource |
'Transfer the ReportParameter value to the parameter of the select command |
Me.SqlDataAdapter1.SelectCommand.Parameters("@ManagerID").Value = Me.ReportParameters("ManagerID").Value |
'Take the Telerik.Reporting.Processing.Report instance and set the adapter as |
'it's DataSource |
Dim report As Telerik.Reporting.Processing.Report = CType(sender, Telerik.Reporting.Processing.Report) |
report.DataSource = Me.SqlDataAdapter1 |
End Sub |
I tried to use it for my datasource, as shown below, but it doesn't work.
Private Sub ReportSummary_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.NeedDataSource
'Transfer the ReportParameter value to the parameter of the select command
Me.LRDataSet.GetClaimsSummary.("PolicyNum").Value = Me.ReportParameters("PolicyNum").Value
'Take the Telerik.Reporting.Processing.Report instance and set the adapter as
'it's DataSource
Dim report As Telerik.Reporting.Processing.Report = CType(sender, Telerik.Reporting.Processing.Report)
report.DataSource =
Me.LRDataSet.GetClaimsSummary
End Sub
I am using Visual Studio 2008, and the trial verions of reporting Q1 2009. I created the class library and added a Telerik report, assigned the parameters just like the article described. The above code gives me a "Identifier expected" error on the first line of the code. My dataset name is LRDataSet.xsd, and the datasource is GetClaimsSummary. I tried using the Intellisense to try many different options as I am new to reporting, but nothing is working. I was getting no results for a while, but now when I try to preview the report I get "An error has occured while processing Report '': Object reference not set to an instance of an object. "
I also tried this article: http://blogs.telerik.com/kevinbabcock/posts/09-03-14/telerik_reporting_connecting_to_stored_procedures.aspx
which is essentially the same but has the code for hte needdatasource in C#. I used an online converted to try to convert it, but didn't have any luck with that either. Can you tell me what I'm doing wrong?

Me.SqlDataAdapter1.SelectCommand.Parameters("@PolicyNum").Value = Me.ReportParameters("PolicyNum").Value
'Take the Telerik.Reporting.Processing.Report instance and set the adapter as it's DataSource
Dim ReportSummary As Telerik.Reporting.Processing.Report = CType(sender, Telerik.Reporting.Processing.Report)
'Dim report As Telerik.Reporting.Processing.Report = CType(sender, Telerik.Reporting.Processing.Report)
ReportSummary.DataSource = Me.SqlDataAdapter1
But I do still get the error "An error has occured while processing Report '': Object reference not set to an instance of an object." Help!
The "Identifier Expected" error you received was due to this line:
Me.LRDataSet.GetClaimsSummary.("PolicyNum").Value = Me.ReportParameters("PolicyNum").Value
You have a "dot" before the ("PolicyNum") identifier which is not correct.
As for your last post - the code looks correct, so our advice would be to set break points and see which object is null and why. The code from the KB article is valid and there are even a sample working projects at its bottom. Please review them carefully and apply the appriach accordingly to fit your scenario.
Regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

