I have a project using Telerik Reporting 2013 Q2. All was going well until I attempted to export my report to an external file (I had been testing using a Telerik Report Viewer). when I export my report I get multiple blank pages interspersed in the report. I have looked at the post http://www.telerik.com/support/kb/reporting/general/problem-telerik-reporting-renders-blank-pages.aspx but that is not my problem. Here is a code sample of my code:
Dim rg As New MainReport
rg.txtReportName.Value = "Contractor One"
rg.txtRunDate.Value = Now.Date.ToShortDateString
rg.ReportGuid = xxxxxx
rg.GenerateReport()
Dim rs As New Telerik.Reporting.InstanceReportSource
rs.ReportDocument = rg
Dim tf As New testform
tf.ReportViewer1.ReportSource = rs
tf.ReportViewer1.RefreshReport()
tf.ShowDialog()
Dim processor As New Telerik.Reporting.Processing.ReportProcessor
Dim deviceInfo As New Hashtable
Dim rr As Telerik.Reporting.Processing.RenderingResult
rr = processor.RenderReport("PDF", rs, deviceInfo)
System.IO.File.WriteAllBytes("d:\temp\pdfexp.pdf", rr.DocumentBytes)
The report displays fine in the Report Viewer but when it gets exported, blank pages appear randomly.
Alex
Dim rg As New MainReport
rg.txtReportName.Value = "Contractor One"
rg.txtRunDate.Value = Now.Date.ToShortDateString
rg.ReportGuid = xxxxxx
rg.GenerateReport()
Dim rs As New Telerik.Reporting.InstanceReportSource
rs.ReportDocument = rg
Dim tf As New testform
tf.ReportViewer1.ReportSource = rs
tf.ReportViewer1.RefreshReport()
tf.ShowDialog()
Dim processor As New Telerik.Reporting.Processing.ReportProcessor
Dim deviceInfo As New Hashtable
Dim rr As Telerik.Reporting.Processing.RenderingResult
rr = processor.RenderReport("PDF", rs, deviceInfo)
System.IO.File.WriteAllBytes("d:\temp\pdfexp.pdf", rr.DocumentBytes)
The report displays fine in the Report Viewer but when it gets exported, blank pages appear randomly.
Alex