473,785 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get Printer Device Names

Hi,
I wish to get all the names of printer devices using system.io or
system.drawing. printing or any other method. I know that you can do this in
Access so you should be able to do this in vb.net.

Thanx in advance

Geri
Nov 21 '05 #1
3 3143
See if System.Drawing. Printing.Printe rSettings.Insta lledPrinters is what you
are looking for.

"Geraldine Hobley" <Ge************ *@discussions.m icrosoft.com> wrote in
message news:BC******** *************** ***********@mic rosoft.com...
Hi,
I wish to get all the names of printer devices using system.io or
system.drawing. printing or any other method. I know that you can do this in
Access so you should be able to do this in vb.net.

Thanx in advance

Geri
Nov 21 '05 #2
Hello,
There doesn't seem to be any function name called
system.drawing. printersettings .installedprint ers.

Geri

"Shiva" wrote:
See if System.Drawing. Printing.Printe rSettings.Insta lledPrinters is what you
are looking for.

"Geraldine Hobley" <Ge************ *@discussions.m icrosoft.com> wrote in
message news:BC******** *************** ***********@mic rosoft.com...
Hi,
I wish to get all the names of printer devices using system.io or
system.drawing. printing or any other method. I know that you can do this in
Access so you should be able to do this in vb.net.

Thanx in advance

Geri

Nov 21 '05 #3
System.Drawing. Printing.Printe rSettings class has a property named
InstalledPrinte rs

"Geraldine Hobley" <Ge************ *@discussions.m icrosoft.com> wrote in
message news:04******** *************** ***********@mic rosoft.com...
Hello,
There doesn't seem to be any function name called
system.drawing. printersettings .installedprint ers.

Geri

"Shiva" wrote:
See if System.Drawing. Printing.Printe rSettings.Insta lledPrinters is what you are looking for.

"Geraldine Hobley" <Ge************ *@discussions.m icrosoft.com> wrote in
message news:BC******** *************** ***********@mic rosoft.com...
Hi,
I wish to get all the names of printer devices using system.io or
system.drawing. printing or any other method. I know that you can do this in Access so you should be able to do this in vb.net.

Thanx in advance

Geri

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
22312
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to the selected printer. I'm not concerned about the text format. What I tried is something like this CommonDialog1.ShowPrinter
1
4952
by: Meyer1228 | last post by:
We're printing invoices using the printer function in VB6. If we print to an IBM-compatible dot-matrix, we can use a font called "12 CPI HSD" which works well, since we want to use 12-pitch. If we want to print to our HP Laser, we need to know that it is a laser so we can change the font to something comparable. Is there a way to determine what type of printer is selected - i.e. Laser(or deskjet) or Dot Matrix?
8
15210
by: kchengso | last post by:
One of my printers in my printer.devicename call returns in lower case. Is it possible for me to change it to upper case? I am also wondering how, in the first place, this particular printer devicename is coded in lower case? Is there a way to change it back using VB6? Thanks
0
2240
by: Anson Ng | last post by:
I found out that VB.Net supports only TrueType and OpenType fonts, in other words, it doesn't load printer fonts (device fonts) that are associated with a printer. I'm writing an application that will print to a POS printer and I would like to use its printer fonts for barcode printing. Is there a way I could load those printer/device fonts in my code? -- Anson
13
1566
by: MLH | last post by:
I want to find a printer that will accept a print-stream from a database app JUST for time/date stamping on inbound documents received at a law office. The printer would have no paper tray, labels or other paper source. It would work something like an employee time-card machine. Legal secretary logged in at particular workstation running the dbase app simply clicks a button launching procedure in app that will send print stream to the...
2
3043
by: Ryan Gregg | last post by:
I've got a dot matrix printer that I need to print a line at a time to. This is being used for an audit log on an application and every event that occurs needs to print out right as it occurs. I've previously had this working well in a serial communication method where I talk directly to the printer using control codes and what not. However, it seems that the higher ups want to be able to use a network printer or other Windows-configured...
1
11890
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32 DeviceCapabilities( string device, string port, Int16 capability, out IntPtr outputBuffer,
2
4605
by: dever | last post by:
I checked my color printers's Printersettings.SupportsColor, which all showed false. What is wrong that I could not use this property. Also, what other way to detect if a printer is color printer. TIA
4
16824
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's Tip to these Topics. The Tip will actually consist of several Tips which I feel are very useful for all Users, from Newbies to Experts. In order to utilize the code contained within these Tips, you must have Access 2002 or later. How can I...
3
6803
by: Geeshan | last post by:
Hi All, I'm a newbie to the POS system. so please mind if my questions are stupid. I have an epson TM-U200 printer with USB connection and cash drawer connected to printer with RJ 11 cable. I tried to create a service object for my printer and suceeds.(It shows on test app as a POS Printer) this is my code for that.
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10336
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9953
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7502
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.