Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PrintControl.CanExecCommand(PrintingSystemCommand) Method

Checks whether or not the specified command can be executed.

Namespace: DevExpress.XtraPrinting.Control

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

public bool CanExecCommand(
    PrintingSystemCommand command
)

#Parameters

Name Type Description
command PrintingSystemCommand

A PrintingSystemCommand enumeration value.

#Returns

Type Description
Boolean

true if the command can be executed; otherwise, false.

#Remarks

Call this method to ensure that a certain command can be executed before calling the PrintControl.ExecCommand method.

See Also