Hi,
I'm trying to migrate a project using the legacy WebForms report viewer to html5.
Now our use case requires me to build a report book at runtime, pass different parameters in per report and then add that report to the book. Once I collected all the reports in the book I want to show that specific book in the html5 viewer.
However I'm unsure as to how I can achieve this since the ReportSource doesn't allow me to add the instanciated book in.
Here is a quick example of roughly what I'm trying to do in this case:
Dim rs As New Telerik.ReportViewer.Html5.WebForms.ReportSource()
Dim multiQuoteBook As New Telerik.Reporting.ReportBook()
For Each quoteId In quotes
Dim localQuoteReport As New Telerik.Reporting.TypeReportSource()
localQuoteReport.TypeName = GetType(Reports.QuoteReport).AssemblyQualifiedName
localQuoteReport.Parameters.Add("LoginEntryId", LoginEntryid)
localQuoteReport.Parameters.Add("DocumentId", quoteId)
multiQuoteBook.ReportSources.Add(localQuoteReport)
Next
' How do I assign "multiQuoteBook" to the ReportSource "rs" ?
ReportViewer1.ReportSource = rs
Any input is appreciated.
I found this thread here: ReportBook using HTML5 Viewer in Reporting | Telerik Forums where the dev basically gave up on it as it seemed to hard. It's quite strange that I'm struggling with the same issue.