[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.PageSettings

PageSettings Property

PageSettings

Gets or sets a value representing the report’s page settings.

Declaration
[Browsable(false)]
public PageSettings PageSettings { get; set; }
Property Value
Type Description
PageSettings

A PageSettings value representing the page settings for the current report.

Remarks

Lets you specify default report page: page paper size, orientation, margins etc. Shouldn't be null.

Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.PageSettings.PaperKind = GrapeCity.ActiveReports.Printing.PaperKind.A3;
sectionReport.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Landscape;
sectionReport.PageSettings.Margins.Top = 0.5f;
sectionReport.PageSettings.Margins.Bottom = 0.5f;
sectionReport.PageSettings.Margins.Left = 0.7f;
sectionReport.PageSettings.Margins.Right = 0.7f;
// specify print width too
sectionReport.PrintWidth = 16.5;