[IXpsPrintJob::Cancel is not supported and may be altered or unavailable in the future. ]
Cancels the print job.
HRESULT Cancel( );
This method has no parameters.
If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.
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.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|