Back to Devexpress

PrintControl.PrintingSystem Property

windowsforms-devexpress-dot-xtraprinting-dot-control-dot-printcontrol-24b069b1.md

latest3.2 KB
Original Source

PrintControl.PrintingSystem Property

Specifies the Printing System that is used to create document pages for a link or report opened in Print Preview.

Namespace : DevExpress.XtraPrinting.Control

Assembly : DevExpress.XtraPrinting.v25.2.dll

NuGet Package : DevExpress.Win.Printing

Declaration

csharp
[DefaultValue(null)]
public virtual PrintingSystemBase PrintingSystem { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property PrintingSystem As PrintingSystemBase

Property Value

TypeDefaultDescription
PrintingSystemBasenull

A PrintingSystemBase class descendant.

|

Example

The following code demonstrates how to change the PrintControl.PrintingSystem property at runtime.

csharp
PrintingSystem ps2 = new PrintingSystem();
printControl1.PrintingSystem = ps2;
vb
Dim ps2 = new PrintingSystem()
PrintControl1.PrintingSystem = ps2

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrintingSystem 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.

reporting-winforms-print-report-in-dot-matrix-printer/CS/Form1.cs#L20

csharp
report.CreateDocument();
    printControl1.PrintingSystem = report.PrintingSystem;
}

reporting-winforms-print-report-in-dot-matrix-printer/VB/Form1.vb#L22

vb
report.CreateDocument()
    printControl1.PrintingSystem = report.PrintingSystem
End Sub

See Also

PageSettings

PrintControl Class

PrintControl Members

DevExpress.XtraPrinting.Control Namespace