Visual Basic Reference
KillDoc Method
Immediately terminates the current print job.
Syntax
object.KillDoc
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
Remarks
If the operating system's Print Manager is handling the print job (the Print Manager is running and has background printing enabled), KillDoc deletes the current print job and the printer receives nothing.
If Print Manager isn't handling the print job (background printing isn't enabled), some or all of the data may be sent to the printer before KillDoc can take effect. In this case, the printer driver resets the printer when possible and terminates the print job.