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

Blank pages strike again...

5 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 25 Mar 2014, 12:53 AM
So I have my report designed and working. However I am getting blank pages. I was able to solve it, but the solution was even weirder than the blank pages. 

I have my report (Letter, .5" margins all around), my Report (width of 7.4", just to be safe), and a panel that is 7.2" wide (0.1" margin on each side, no padding). Inside that panel I have two columns of HTMLTextBoxes. 

The solution to the blank page situation was to make the right col of text boxes skinnier, leaving about 0.3" between the right side of the panel and the left edge of the text box. If I make the text boxes wider, the blank page appears. If I make them skinner, the blank page goes away. 

I've added background colors to see if they appear on the second page (they don't). 

I've cut and paste the text boxes back into the Report. That didn't fix it. 

I've deleted and recreated the HTMLTextBoxes. That didn't fix it.

I left the replacement text boxes blank. That didn't fix it. 

I've deleted and recreated the panel and HTML TextBoxes. That didn't fix it. 

Sigh. I'm exhausted. I'd appreciate any help.

Telerik 2014 Q1. 


5 Answers, 1 is accepted

Sort by
0
KS
Top achievements
Rank 1
answered on 26 Mar 2014, 05:59 PM
Hi,

It may be caused by the layout engine of the browser, so test with other browsers or change the font size. And the sizes do not seem to fit, test to shrink the panel.

-KS
0
Anthony
Top achievements
Rank 1
answered on 26 Mar 2014, 06:09 PM
The extra pages are in a PDF document. I am using ReportProcessor to generate a PDF document from the report and parameters. 
0
Glenn
Top achievements
Rank 1
answered on 27 Mar 2014, 07:02 PM

I had this problem at some point.  There are a lot of posts on this so I'll be brief.

Check the width of your report, if it's close to the max width it can be (adjusted by which ever pdf driver you have me thinks) try making yours a little bit narrower.  My understanding is that the telerik rendering engine converts to html then to pdf.  So you have to account for any spacing issues that might be created during this conversion.  Mine was remedied by using 7.98" instead of 8" (.25" margins).

Hope it helps,
Glenn

0
Anthony
Top achievements
Rank 1
answered on 01 Apr 2014, 12:01 AM
Well, I think I might have finally figured it out. 

The report is kind of long (100 pages or so) with about 50 items each producing a 1-2 page report. About 3/4 of the way through the report, one of the items was causing an error with one of my expressions. 

But apparently this one error caused all the reports to be 2 pages and print out blank pages. It wasn't until I went all the way through the report and found the one or two items that had caused the error in the expressions, and then fixed the expression did the blank pages go away. 

That was super frustrating. Telerik should add that one to their blank page debugging KB article. 
0
Stef
Telerik team
answered on 01 Apr 2014, 04:16 PM
Hi Anthony,

We will consider updating our articles, and we are glad you resolved the issue.

Thanks to everyone participating in the discussion.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Anthony
Top achievements
Rank 1
Answers by
KS
Top achievements
Rank 1
Anthony
Top achievements
Rank 1
Glenn
Top achievements
Rank 1
Stef
Telerik team
Share this question
or