PrintingSystemBase.ExecCommand(PrintingSystemCommand) Method

Executes the specified printing system command.

Namespace: DevExpress.XtraPrinting

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

Declaration

public void ExecCommand(
    PrintingSystemCommand command
)
Public Sub ExecCommand(
    command As PrintingSystemCommand
)

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