Get Printer Driver By Printer Name Vb Net Data

Get Printer Driver By Printer Name Vb Net Data 4,0/5 3079reviews

I am converting an old application that was printing directly to a specialized printer device (i.e. A special label printer).

How To Change Printer Name In Windows 10

It was doing this by opening a file with the file path of 'LPT1:' and then using PRINT # to print directly to the printer device. Obviously, this is not going to work under VB.NET - StreamWriter won't let you open a device like LPT1: and such. I assume I am going to have to switch to the System.Drawing.Printing namespace to do this? And if so, is this going to work the same way? This printer needs special codes and such sent to it - which my code does, but it is not a general-purpose printer). Hp Laserjet Professional M1210 Mfp Series Driver. Or is there another way to do it? And, since the users default printer may NOT be the LPT1: device (i.e.

Get Default printer information with VB.Net.!! You can get information for each of the printers by constructing a new PrinterSettings class and setting.

Their default printer would probably be a network printer, with the label printer as a locally attached printer), how do I specify that I want it to print on the printer that is connected to LPT1:? Thanks in advance. Chris: Yep, I saw that in another message after I sent my previous post. Now my question is: Using the example to print raw data - do you know if you can use a printer name like 'LPT1:'? Or do you -HAVE- to use a specific Windows driver/printer name?

Bureau 13 Stalking The Night Fantastic Pdf Printer. Tom 'Chris Podmore' wrote in message news:6C**********************************@microsof t.com. Tom, I don't know if this will help but Herfried posted the following link in a topic with the subject 'Sending Control characters to a POS printer'. HOW TO: Send Raw Data to a Printer by Using Visual Basic.NET Hope it helps. 'Tom' wrote: I am converting an old application that was printing directly to a specialized printer device (i.e. A special label printer).

It was doing this by opening a file with the file path of 'LPT1:' and then using PRINT # to print directly to the printer device. Obviously, this is not going to work under VB.NET - StreamWriter won't let you open a device like LPT1: and such. I assume I am going to have to switch to the System.Drawing.Printing namespace to do this?

And if so, is this going to work the same way? This printer needs special codes and such sent to it - which my code does, but it is not a general-purpose printer). Or is there another way to do it? And, since the users default printer may NOT be the LPT1: device (i.e.

Their default printer would probably be a network printer, with the label printer as a locally attached printer), how do I specify that I want it to print on the printer that is connected to LPT1:? Thanks in advance. Tom, I'm not sure about talking directly to LPT1:, looking at the code it looks like it has to go through the printer driver. If you want to talk directly to LPT1: instead of the printer driver, I'm not sure how you would do that. I did a quick search about talking to DOS devices but couldn't find anything. Sorry I wasn't much help, I hop you find an answer. 'Tom' wrote: Chris: Yep, I saw that in another message after I sent my previous post.