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

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.v18.2.dll

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

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.

See Also