Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Scheduler (new)
  [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]Interactive Forms
   [Expand]Navigation
   [Collapse]Interactivity
     File Attachment
     Navigating and Viewing a Document
     Content Copying
     Cursor Modes
     Document Rotation
     Zooming
     Printing
   [Expand]Examples
  [Expand]TreeMap Control
  [Expand]Diagram Control
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[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), showPrintStatus (defines whether to show or hide the print status dialog) and maxPrintingDPI (specifies the maximum DPI value allowed for document printing) parameters to this method as arguments.

How would you rate this topic?​​​​​​​