ник: osmor
Попробуйте эту процедуру
http://hiprog.com/index.php?option=com_content&task=view&id=356
и
вот такой код
strComputer = "."
' где "HP QuietJet" - имя принтера
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Name = 'HP QuietJet'")
For Each objPrinter in colInstalledPrinters
objPrinter.CancelAllJobs()
Next
|