Skip to main content

PrintingSystemBase.ExecCommand(PrintingSystemCommand) Method

Executes the specified printing system command.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.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.

See Also