I am trying to print a report using C# Report Viewer Control.
By the way, I bumped into a problem.
I wanted my .rdlc
file to be printed on A4 size. so I changed .rdlc
file size with A4 size 210X297(mm) in the VS2010 designer . But the report viewer object that uses this .rdlc
file automatically sets the margins on the paper. So the total size of the paper that will be printed was over A4 size.
I can't estimate the size of the margin. Is there any way to estimate or control the size of the margin?
I have been searching for the last some days... I need help. please give me a hand.
My platform is VS2010 / .Net 4.0 / C#
Thanks tezzo for your help. I appriciate it. My problem was which I didn't know the fact that Report > Report properties > Page setup exists. I could resolve my problem by your advice. But I had what makes me confused. so I leave some aditional pictures. I hope it is helpful to another person who encounters such a problem.
When you reach here, you can follow tezzo's advice. then you can print rdlc file on A4 size.
I am first to write here. so I can't add any picture on it. I link pictures.
< picture 1>
< picture 2 >
You can set paper size and margins in Report > Report properties > Page setup .
I usually use this settings:
So the maximum width of report will be:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.