[]
Gets or sets a value representing the report’s page settings.
[Browsable(false)]
public PageSettings PageSettings { get; set; }
Type | Description |
---|---|
PageSettings | A PageSettings value representing the page settings for the current report. |
Lets you specify default report page: page paper size, orientation, margins etc. Shouldn't be null
.
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;