473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Numer of network printers in VB.NET

Does someone know how I can display in a VB.NET label the number of network printers installed in the computer??
Sep 14 '12 #1
1 1635
pod
298 100+
"PrinterSettings.InstalledPrinters.Count"
...along with the code to pop each "InstalledPrinters" in a msgbox.

Expand|Select|Wrap|Line Numbers
  1. 'you'll need this at the top
  2. Imports System.Drawing.Printing
  3. '....
  4.     Private Sub findInstalledPrinters()
  5.         Me.MyLabel.Text = PrinterSettings.InstalledPrinters.Count
  6.         Dim pkInstalledPrinters As String
  7.  
  8.         ' Find all printers installed
  9.         For Each pkInstalledPrinters In _
  10.             PrinterSettings.InstalledPrinters
  11.             MsgBox(pkInstalledPrinters)
  12.         Next pkInstalledPrinters
  13.  
  14.     End Sub
Sep 14 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matt Chan | last post by:
Hi, I am trying to create a python script to install a set of network printers. I have had success using an os.popen statement, using rundll32 and printui.dll. This takes way too long. Can someone...
0
by: Dexter | last post by:
Hello all, I need to list in a dropdownlist, all network printers. I have a server with 6 printers, and I need to do a direct print at printer that the user to select in a dropdownlist. ...
0
by: Francisco Araujo | last post by:
I have been trying to change printer settings thru SetPrinter API and it works successfully for local printers, but with network printers i don't get neither an error message or anything else. ...
4
by: Phil Galey | last post by:
In VB.NET, Printing.PrinterSettings.InstalledPrinters enumerates only printers connected to the current computer. How can you enumerate network printers?
1
by: Phil Galey | last post by:
Is there any way of enumerating all printers, including network printers in VB.NET? printing.PrinterSettings.InstalledPrinters only enumerates printers attached to the local workstation. ...
0
by: prakashkoshti | last post by:
I have an applicaiton developed in ASP.Net. I have installed network printers on my machine. (Installed printers include both USB and COM) When I try to print from other interactive applications...
2
by: Tessa | last post by:
Hi, We have a .net web application, and are trying to use PrinterSettings.InstalledPrinters to list the printers installed on the webserver. (Windows 2003 server R2, IIS 6, .net framework 2.0.)...
3
by: AricC | last post by:
Occasionally users on my domain lose their network printers. Has anyone heard or seen this? If the user logs out and logs back in the policies push out the correct permissions and they will get...
2
by: calan_svc | last post by:
I have a dll I wrote in VB6. Basically, it can list all the printers it finds as well as print to a selected printer. I created a test app in VB6, added the dll as a reference, and added the...
5
maxamis4
by: maxamis4 | last post by:
Hello folks, What I want to do is scan my subnet for all network printers and return their IP address, serial number, make and model. Same concept as WMI but for network printers. How can this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.