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.v20.1.dll

Declaration

public PrintingSystemBase PrintingSystem { get; set; }
Public Property PrintingSystem As PrintingSystemBase

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.

Examples

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});

Implements

DevExpress.XtraPrinting.Preview.IPrintPreviewForm.PrintingSystem
See Also