Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Heloo friends.

I am using RDLC report.When i exporting data to PDF then it breaks page in 2.I have searched and tried all solutions from google but i didnt get success.plz help me.

I tried Standard page size 8.5*11in
Also tried margins 0.5,0.25.1
Posted
Updated 16-Jan-23 1:29am
Comments
[no name] 12-Apr-14 7:00am    
Did you maybe try not adding so much information so that only one page is generated instead of 2?

You'll have to play around with the margins and how much data you have to get it to fit. You may have to shrink fonts as well.
 
Share this answer
 
You can get the report on a single page by setting up page and margins

C#
PrintFormReportViewer.Font = new Font("Arial", 8);
PageSettings pSetting = new PageSettings();
pSetting.PaperSize = new PaperSize("A4", 830, 1170);
pSetting.Margins = new System.Drawing.Printing.Margins(1, 1, 1, 1);
PrintFormReportViewer.SetPageSettings(pSetting);
 
Share this answer
 
Comments
Richard Deeming 16-Jan-23 9:43am    
As solution 1 already said, nine years ago.

Stick to answering new questions unless you have something new to add to the discussion.

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