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

PrintingSystemBase.ExecCommand(PrintingSystemCommand) Method

Executes the specified printing system command.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public void ExecCommand(
    PrintingSystemCommand command
)

Parameters

Name Type Description
command PrintingSystemCommand

A PrintingSystemCommand enumeration value representing the command to be executed.

Remarks

Note

The ExecCommand method takes effect only in Windows Forms applications, where it must be called after the DocumentViewer.DocumentSource property has been assigned a value.

Use the ExecCommand method to perform the same action performed when a toolbar button or a menu item associated with the specified printing system command is clicked. The PrintingSystemCommand enumeration lists all the available printing system commands.

To execute a printing system command and pass parameters to it, use the overloaded PrintControl.ExecCommand method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExecCommand(PrintingSystemCommand) method.

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