.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET 5.0+

PrintingController Class

Represents a ViewController descendant that provides printing functionality in the Windows Forms applications.

Namespace: DevExpress.ExpressApp.Win.SystemModule

Assembly: DevExpress.ExpressApp.Win.v21.2.dll


public class PrintingController :


The PrintingController Controller is provided by the System Module, and is activated for Detail Views whose control implements the IPrintable interface and List Views whose List Editor implements the IExportable interface. Contains the PrintingController.PageSetupAction, PrintingController.PrintAction and PrintingController.PrintPreviewAction Actions, allowing end-users to print the current View. These Actions are added to the Print Action Container, available in the File main menu.


The Print Action Container is also available in the context menu and main toolbar of the NestedFrameTemplateV2. Note that only the PrintPreview Action is available in nested List Views.


To execute these Actions, the Printing-Exporting system is used. It supplies many features, such as export to various formats, sending via email, scaling, zooming, numbering pages, UI skinning and so on. This system works with the controls that implement the DevExpress.XtraPrinting.IPrintable interface. This interface is implemented in many controls representing object collections, for example: XtraGrid, XtraScheduler and XtraTreeList. To customize the behavior of these Actions, you can subscribe to the PrintingController.CustomGetPrintableControl and PrintingController.PrintingSettingsLoaded events, exposed by the PrintingController. Refer to the How to: Customize Export Options of the Printing System topic, for an example.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrintingController class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.


See Also