Hello,
I created a report and I'm exporting it programmatically. Here's the code
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
Dim app As String = CType(Session.Item("App"), String)
Dim deviceInfo As New System.Collections.Hashtable()
Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
Dim ContactReports As New Telerik.Reporting.Report
Dim instanceReportSource = New Telerik.Reporting.InstanceReportSource()
instanceReportSource.ReportDocument = New ContactReports.TestReport
instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("par_app", app))
Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)
Response.ContentType = "application/PDF"
Response.BinaryWrite(result.DocumentBytes)
Response.Flush()
Response.End()
End Sub
Everything works fine, but I would like to be able to create multiple reports of the same report, add them to a report book and export it.
I've seen a lot of posts and documentation, but I'm having a hard time trying to figure it out. Any help will be appreciated.
Thanks