Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone in my favorite web site to solve problems....
I want to reduce the width and height of CrystalReportViewer to make report to be smaller size to suit the quality of printing paper (bar coded plasting paper).
I am working in Visual Studio 2012 (C#.net)... thank for you so much for your helpers.
Posted

1 solution

I always enjoy fighting with Crystal Reports (Not really).
I had the same issue.

The problem is annoying and the explanation I found online is this:
Crystal Reports saves the size of the paper in the report itself and it cannot be changed through code.
If you do change the size of the paper though code, all it does is render the report in the original page size and then stretch or shrink it to the required page size.

The solution for this is to create a printer (even a virtual one) and set it's page size to the required one. Then set it as the default printer for the report.

Hope I helped.
 
Share this answer
 
Comments
Mustafa77 7-Feb-15 2:42am    
Thank you my friend i'll try that, then i'll tell you again

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