IXpsPrintJob::Cancel method

[IXpsPrintJob::Cancel is not supported and may be altered or unavailable in the future. ]

Cancels the print job.

Syntax

HRESULT Cancel(

);

Parameters

This method has no parameters.

Return Value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Remarks

Any spooling or printing that is in progress at the time this method is called will be canceled.

This function is thread-safe and synchronized with the job status of the print job object.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header xpsprint.h

See Also

Documents

IXpsPrintJob

XML Paper Specification