Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / reporting

Active Report in Landscape Mode

0.00/5 (No votes)
19 Jan 2011CPOL 20.8K  
Displaying Active Report in Landscape Mode
I developed an Active report with loads of controls to display, therefore I need to display report in landscape mode. In properties of report, there is no property available to achieve that.
But after some hit n trials, I reached a solution.

Add the below code snippet in the report xxxx.designer.cs and you are good to go. Hope this would solve your problem.

MIDL
this.PageSettings.Collate = DataDynamics.ActiveReports.PageSettings.PrinterCollate.Collate;
           this.PageSettings.Margins.Bottom = 0.25F;
           this.PageSettings.Margins.Left = 0.25F;
           this.PageSettings.Margins.Right = 0.18F;
           this.PageSettings.Margins.Top = 0.32F;
           this.PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape;
           this.PageSettings.PaperHeight = 11F;
           this.PageSettings.PaperWidth = 8.5F;
           this.PrintWidth = 10.58083F;

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)