PrintingSystemBase.ExecCommand(PrintingSystemCommand, Object[]) Method

Executes the specified printing system command and passes the specified parameters.

Namespace: DevExpress.XtraPrinting

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


public void ExecCommand(
    PrintingSystemCommand command,
    object[] args


Name Type Description
command PrintingSystemCommand

A PrintingSystemCommand enumeration value representing the command to be executed.

args Object[]

A collection of Object objects, representing the parameters to be passed to the executing command.



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 actions performed when the 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 without any parameters, use the overloaded PrintControl.ExecCommand method.

See Also