PrintDialogRunner.Instance Property
Assigns a default Print dialog.
Namespace: DevExpress.XtraPrinting.Preview
Assembly: DevExpress.XtraPrinting.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
PrintDialogRunner |
Example
To make the PrintTool.PrintDialog method invoke the standard system Print dialog, add the following code to the application’s Program.cs unit (Program.vb in Visual Basic).
This will replace the DefaultPrintDialogRunner, returned by the PrintDialogRunner.Instance
property, with a SystemPrintDialogRunner.
using DevExpress.XtraPrinting.Preview;
// ...
static void Main(string[] args) {
PrintDialogRunner.Instance = new SystemPrintDialogRunner();
// ...
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Instance property.
Note
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.