65.9K
CodeProject is changing. Read more.
Home

Active Report in Landscape Mode

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Jan 19, 2011

CPOL
viewsIcon

20771

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.
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;