[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
 [Expand]Product Information
 [Expand]Get Started with DevExpress Reporting
 [Expand]Create Popular Reports
 [Expand]Detailed Guide to DevExpress Reporting
 [Expand]Visual Studio Report Designer
 [Collapse]Create End-User Reporting Applications
   Cross-Platform Reporting
  [Collapse]WinForms Reporting
   [Collapse]Print API
     Print a Report
     Print Multiple Reports in a Batch
     Specify Print Settings
     Specify the Number of Copies to Print
     Manage the Print Progress
     Print a Specified Range of Report Pages
     Specify the Paper Source and Printer Resolution
     Obtain the Current Page Number when Printing a Control
   [Expand]Print Preview
   [Expand]End-User Report Designer
   [Expand]Application Security
   [Expand]Application Appearance
    Application Deployment
    End-User Documentation
  [Expand]WPF Reporting
  [Expand]Web Reporting
  [Expand]WCF Report Service
  [Expand]Discontinued Platforms
   Redistribution and Deployment
 [Expand]API Reference
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Specify Print Settings

This document describes report printing options.

Call the ReportPrintTool.ShowPageSetup method to invoke the Page Setup dialog.

The following table lists the XtraReport class's properties are related to printing:


You can specify the corresponding PrinterSettingsUsing class options the report's XtraReport.DefaultPrinterSettingsUsing property returns to make these properties use the system's default printer settings.

Property Description
XtraReport.Landscape Specifies whether the page orientation is landscape or portrait.
XtraReport.Margins Specifies the report page margins (measured in report units).
XtraReport.PageHeight Specifies the report page height (measured in report units). This can only be set if the PaperKind is set to Custom.
XtraReport.PageWidth Specifies the report page width (measured in report units). This can only be set if the PaperKind is set to Custom.
XtraReport.PaperKind Specifies the type of paper for the report. If set to Custom, the printer paper is selected according to the PaperName property's value, and its size is set to the PageHeight and PageWidth property values.
XtraReport.PaperName Specifies the name of the custom paper the selected printer uses. This can only be set if the PaperKind is set to Custom.
XtraReport.PrinterName Specifies the name of the printer to be used to print the report.
XtraReport.ShowPrintMarginsWarning Specifies whether an error message is shown when the page margins are set outside the printable area.

Is this topic helpful?​​​​​​​