Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

I have done Report in ASP.NET using RDLC report.when export to pdf my data completes within one Page
But i getting a empty second page.Can anyone tell me How to Avoid the empty page if the datas completed within a single page.


Thanks,
Posted

The answers on this forum[^] might help you.

Also try setting ConsumeContainerWhitespace=true.
 
Share this answer
 
Comments
jayapriya.L 24-Dec-11 8:05am    
Where it is put this line in report?.....
Abhinav S 24-Dec-11 9:14am    
This should be set in the properties section of the report.
Monjurul Habib 24-Dec-11 8:25am    
nice answer, 5!
Abhinav S 24-Dec-11 9:13am    
Thank you.
thatraja 24-Dec-11 9:00am    
5!
Make sure your margins are setup correctly. If you exceed even just a little it will kick out blank pages.

"Setting the page-property ConsumeContainerWhitespace=true (in the properties dialog, F4) has helped. However it was anyhow tricky to build the report correct. At the begining it worked only if I added all extra content to the page-header and footer. But this was not acceptable. After a lot of trying, I succeed in making the report as desired. However I don't really understand the logic behind.

I have in mind that I already have done such reports (growing in both directions, horizontally and vertically together) without any problems and I don't know what is difference to this report here. For this report, it's definitively reproducable that the ConsumeContainerWhitespace-property makes the difference. But why this never happens to me for similar reports I have done, I don't know. Also I don't know why I had first to circle around before the layout-engine accepted my design."
REF.

How to get rid of blank pages in PDF exported from SSRS
How to limit RDLC report for one page in a PDF?
 
Share this answer
 
v2
Comments
thatraja 24-Dec-11 9:00am    
5!
Monjurul Habib 24-Dec-11 9:07am    
thank you
Abhinav S 24-Dec-11 9:04am    
5!
Monjurul Habib 24-Dec-11 9:07am    
thank you
how to set up the margins ? I have this strange problem! I have a report that should expand vertically I was expecting crystal report engine can handle this actually it handles it in Word perfectly but in pdf the bad blank pages annoying me.
 
Share this answer
 
Comments
[no name] 25-Aug-13 18:38pm    
So how exactly is your problem any kind of a solution to this ancient already answered question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900