Hi Folks,
1) I tried using the Printers collection in VB to select a particular printer and the KillDoc method to kill the current print job.
But it says the Object does not support the Method or Property ( Runtime Error 438 ).
I have also posted the code snippet that I tried. Please take look at it and let me know what is to be done.
Dim prnt as Printer
Private Sub List1_Click()
Set prnt = Printers(List1.Selected(List1.ListIndex + 1))
prnt.KillDoc
End Sub
I select the printer from the list ( List1 )and this is to kill the document immediately.
2) Also is there some way for me to list all the jobs that are currently queued up in the printer?
Thanks in advance.
Hope it helps. Let me know what happens.
With regards,
PGK
1) I tried using the Printers collection in VB to select a particular printer and the KillDoc method to kill the current print job.
But it says the Object does not support the Method or Property ( Runtime Error 438 ).
I have also posted the code snippet that I tried. Please take look at it and let me know what is to be done.
Dim prnt as Printer
Private Sub List1_Click()
Set prnt = Printers(List1.Selected(List1.ListIndex + 1))
prnt.KillDoc
End Sub
I select the printer from the list ( List1 )and this is to kill the document immediately.
2) Also is there some way for me to list all the jobs that are currently queued up in the printer?
Thanks in advance.
Hope it helps. Let me know what happens.
With regards,
PGK