Back to Devexpress

XtraReport.PrintingSystem Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-1191f590.md

latest4.3 KB
Original Source

XtraReport.PrintingSystem Property

Returns a report’s Printing System that provides print and export settings.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(false)]
public PrintingSystemBase PrintingSystem { get; }
vb
<Browsable(False)>
Public ReadOnly Property PrintingSystem As PrintingSystemBase

Property Value

TypeDescription
PrintingSystemBase

A PrintingSystemBase descendant that provides print and export settings to the report.

|

Remarks

Use this property to access a report’s PrintingSystem.

For a code example, refer to Use Printing System Commands.

To display a report document in a Print Preview form, use the methods of the ReportPrintTool class.

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

xaf-print-a-report-without-displaying-a-preview/CS/EFCore/InstantReportEF/InstantReportEF.Blazor.Server/Controllers/BlazorPrintContactsController.cs#L16

csharp
report.CreateDocument();
PrintToolBase tool = new PrintToolBase(report.PrintingSystem);
tool.Print();

reporting-winforms-add-vertical-brick/CS/T457705/XtraReport1.cs#L33

csharp
SizeF brickSize = new SizeF(size.Height, size.Width);
labelBrick.Initialize(this.PrintingSystem, new RectangleF(brickLocation, brickSize));
return labelBrick;

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

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

reporting-winforms-add-vertical-brick/VB/T457705/XtraReport1.vb#L30

vb
Dim brickSize As New SizeF(size.Height, size.Width)
labelBrick.Initialize(Me.PrintingSystem, New RectangleF(brickLocation, brickSize))
Return labelBrick

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

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

See Also

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace