[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Navigation
   [Collapse]Access and Edit Document Content
    [Expand]Interactive Form
     File Attachment
     Text Markup Annotations
     Content Copying
     Printing
   [Expand]Interactivity
   [Expand]Examples
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Printing

This document describes how to print a document and customize print settings.

You can print the current document using the Print dialog. To invoke the Print dialog, use one of the following options:

  • click the Print command located on the File toolbar button group;

  • press Ctrl+P;
  • or...

  • right-click the document area and select the Print item in the context menu.

To invoke the Print dialog in code, do one of the following:

In the invoked Print dialog, you can choose the printer and specify the following printing parameters.

Page range selection can include a set of pages such as 2-5, which would include page 2 through to page 5, you can also stipulate the order of pages, so 2-5,1,6 would print pages 2-5, then page 1 followed by page 6.

You can also choose the desired option: fit to page, actual size or custom page scaling.

Page orientation can be specified as portrait or landscape. Alternatively, you can tell the printing system to auto calculate the orientation. If the scaling option is set to "fit to page" and orientation is set to "auto", the print engine will attempt to set the orientation and scaling to maximize most of the available paper size.

To print a document, click the Print button in the Print dialog.

To print a document without invoking the Print dialog in code, call the corresponding overload of the PdfViewerControl.Print method and pass the printer settings (represented by the PdfPrinterSettings object), and showPrintStatus (defines whether to show or hide the print status dialog) parameters to this method as arguments. See the How to: Use the PDF Printer Settings example for more details.

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