This is a migrated thread and some comments may be shown as answers.

ReportProcessor Adding Blank Pages

1 Answer 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex Rogers
Top achievements
Rank 1
Alex Rogers asked on 12 Aug 2013, 07:39 PM
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

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 Aug 2013, 06:20 PM
Hello Alex,

The actual output of printing/exporting the report can be preview in PrintPreview mode of the ReportViewer. For more details take a look at the Interactive vs. Print Layout.

If the report has blank pages in print preview, please check again the Problem: Telerik Reporting renders blank pages KB article and give a try to the suggested approaches to find out the overflowing items. In addition you can try supplying more space on report's pages by changing the PageSettings properties(PaperSize, Margins, etc).

In case the above suggestions do not help you, please post the report definition and some sample data to run it.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Alex Rogers
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or