Skip to main content

PrintPreviewFormExBase.PrintingSystem Property

Gets or sets the Printing System used to create and print a document for this link.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing

Declaration

public PrintingSystemBase PrintingSystem { get; set; }

Property Value

Type Description
PrintingSystemBase

A PrintingSystemBase class descendant.

Remarks

Use the PrintingSystem property to access the PrintingSystemBase object which is responsible for report formatting. It paginates a document using the PrintingSystemBase.PageSettings property and then either prints it out or exports it.

Example

This example demonstrates how to execute printing system commands via the PrintingSystemBase.ExecCommand method. Note that some commands are called without any parameters, and that others require parameters to be passed via the overloaded PrintingSystemBase.ExecCommand method.

using DevExpress.XtraPrinting;
// ...

// Zoom the preview of a document so that it fits the entire page
printingSystem1.ExecCommand(PrintingSystemCommand.ViewWholePage);

// Invoke the Hand tool.
printingSystem1.ExecCommand(PrintingSystemCommand.HandTool, new object[] {true}); 

// Hide the Hand tool.
printingSystem1.ExecCommand(PrintingSystemCommand.HandTool, new object[] {false});
See Also