Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi. Is it possible to set the printing page size when Crystal Report XI is generated from ASP.NET page?

I am using c# in code behind.

What I have tried:

My report is set to Legal but when the report is generated through .aspx page, it's printer page size is still in LETTER
Posted
Updated 1-Apr-16 22:47pm

1 solution

Try this..

C#
crReportDocument.PrintOptions.PaperSize = PaperSize.PaperLegal;

crReportDocument.PrintToPrinter(1, false, startPage, endPage);
 
Share this answer
 

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