Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: determining whether User has a Printer


Message #1 by "Dries de Beer" <uglyart@y...> on Wed, 26 Feb 2003 20:46:48 +0200
Hi,
I need to be able to check whether any printers have been set up on the
user's Pc where he is running the app.
Is it safe to loop thru the Printers in the Printers collection?
   Dim cnt As Integer
   Dim pr As Printer
   For Each pr In Printers
      cnt = cnt + 1
   Next pr
   MsgBox ("Found " & Trim(CStr(cnt)) & "printers")
So if cnt greater than zero then there is a printer set up.
And
If the app runs on a Citrix server would the above code be good enough
to check whether a printer exists or not? And exactly whose printers
will I pick up on the citrix server.
The App runs in a network environment
Thanks in advance
Dries



  Return to Index