Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer

Status
Not open for further replies.

YL99

Programmer
Dec 23, 2002
24
0
0
GB
Hi,

PRINT CHECK

I want to perform a check before printing to ensure that the printer is (online/connected).Does anybody know how do to this ??

Second : Once I've sent a page for printing is there anyway of knowning whether it has been printed. This would allow to update the number of pages printed.

Your help would be much appreciated.
 
Try this:

On Error Resume Next
p = Printer.DeviceName
If Err.Number = 484 Then
MsgBox "No printer was found. Please add a printer"
Exit Sub
End If


"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top