I have an rdlc reports which renders fine within our asp.net 3.5 site. However, when I use use its built-in export to PDF feature, the resulting PDF file has three blank pages after each page of data. So my my 5 page report turns into 20 pages in PDF.
Thanks for the helpful hint. However, it only solved half of the problem! Now that I have removed all references to pagebreak from rdlc, the PDF result still has one blank page after each page of data. So my 5 page report now shows as 10 pages in the
PDF format.
Ben Aminnia
Member
46 Points
170 Posts
Problem with RDLC Export to PDF
Apr 13, 2010 05:24 PM|LINK
I have an rdlc reports which renders fine within our asp.net 3.5 site. However, when I use use its built-in export to PDF feature, the resulting PDF file has three blank pages after each page of data. So my my 5 page report turns into 20 pages in PDF.
What am I missing?
rdlc (Report) export to pdf
N_EvilScott
Star
8179 Points
1466 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 05:30 PM|LINK
Look at the propeties of the elements in your report. Make sure you do not have any boxes checked that says Page Break etc...
Ben Aminnia
Member
46 Points
170 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 06:20 PM|LINK
Thanks for the helpful hint. However, it only solved half of the problem! Now that I have removed all references to pagebreak from rdlc, the PDF result still has one blank page after each page of data. So my 5 page report now shows as 10 pages in the PDF format.
N_EvilScott
Star
8179 Points
1466 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 07:22 PM|LINK
Are you using tables?
Make sure you check each option:
PageBreakAtEnd
PageBreakAtStart
RepeatFooterOnNewPage
RepeatHeaderOnNewPage
see if any of thos are causing it.
Ben Aminnia
Member
46 Points
170 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 07:51 PM|LINK
None of those helped; I'm still getting one blank page after each page of data.
N_EvilScott
Star
8179 Points
1466 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 07:59 PM|LINK
Are your margins not setup correctly? If you exceed even just a little it will kick out blank pages.
Ben Aminnia
Member
46 Points
170 Posts
Re: Problem with RDLC Export to PDF
Apr 13, 2010 08:44 PM|LINK
Yes, margin setting was the issue and it's OK now. Thanks.