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

PrintingSystemBase.ExecCommand(PrintingSystemCommand, Object[]) Method

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

Namespace: DevExpress.XtraPrinting

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

Declaration

public void ExecCommand(
    PrintingSystemCommand command,
    object[] args
)

Parameters

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.

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 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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExecCommand(PrintingSystemCommand, Object[]) 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