stop printing from a filter
would a call toRequestShutdown be the proper way to cancel the printing?
would a call toRequestShutdown be the proper way to cancel the printing?
Hi,
For graceful cancelling of job call to IPrintPipelineManagerControl->FilterFinished() is required.Only if any ProcessPart() fails,manual shutdown is called using IPrintPpelineManagerControl->RequestShutdown().
Regards,
Sivakami V
If I call IPrintPpelineManagerControl::RequestShutdown(), would that mean that a. the whole filter pipeline will be stopped and the printing job will be cancelled? or b. only this particular filter will be canceled
In WDK 5384, \src\print\SimplePipelineFilter\XPSFilter.cxx,Line no:546.
Put a breakpoint and debug so that when you cancel the job,the breakpoint is hit and m_bShutDown flag is set true.
thanks anyway.
Hello,
RequestShutDown() will request for a pipeline shutdown.No further processing of filters are done.Pipelinemanager doesnot call other filters.It gets shutdown and process if finished.But if FilterFinsihed( is called,this indicates particular filter is finished and gracefully exited so that pipeline manager can further load other filters for processing.
For cancelling a job and to stop spooling,RequestShutDown() can be called if no further filters is to be called.
Thanks,
sivakami V