Skip to main content
A newer version of this page is available. .

PrintDialogRunner.Instance Property

Assigns a default Print dialog.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v18.2.dll

Declaration

public static PrintDialogRunner Instance { get; set; }

Property Value

Type Description
PrintDialogRunner

A DefaultPrintDialogRunner, or SystemPrintDialogRunner.

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();
    // ...
}

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.

See Also