Skip to Content
0
Former Member
Jul 25, 2014 at 09:39 PM

cannot programmatically change PaperOrientation or PaperSize

192 Views

I have an .RPT file that I created with a Landscape paper orientation and a Letter paper size using Crystal Reports for Visual Studio (version 13.0.10) under VS 2013. At run-time in my server-side .NET code, in a CrystalDecisions.CrystalReports.Engine.ReportDocument object, I changed the PaperOrientation (property PrintOptions.PaperOrientation) to Portrait and the PaperSize (property PrintOptions.PaperSize) to PaperA4. However, when the report renders on the web client, it shows as Landscape and Letter as they were originally set in the .RPT - not using the overriding settings from the server-side code.

How can I get the report to change paper orientation/size programmatically? Am I doing something wrong or is there a bug in Crystal Reports? (and if it is a bug, is this something that will be fixed?)

Thanks in advance for your help!