Visual Basic Development Bookmark and Share   
 Home > Visual Basic Power Packs > Printer Name in ActivePrinter
 

Printer Name in ActivePrinter

Dim objApp As Application = new Application ()

ok --> objApp.ActivePrinter = "\\192.168.11.11\hp LaserJet 1300 PCL 5e on Ne01"
error --> objApp.ActivePrinter = "\\192.168.11.11\hp LaserJet 1300 PCL 5e"
i pickup Printer name in PrinterSettings.InstalledPrinters.Item() ,
and these pickup item seems short " on Nexx" .

so now , how can i get the printer name ends with " on Nexx"
or say that how to get the correct printer name which objApp.ActivePrinter can accept.

Roger Chen _ WORLD PEACE  Tuesday, October 20, 2009 5:28 AM
Hi Roger,

Are you looping through the InstalledPrinters collection and picking up the string? - Seems like that should work.

BTW, this doesn't seem to be related to the PrintForm or Printer object in the Power Packs - you might have better luck asking your question on the Windows Forms forum.

Hope this helps,
Steve Hoag Microsoft aka the V-Bee
shoagMSFT  Tuesday, October 20, 2009 9:31 PM
Hi Roger,

Are you looping through the InstalledPrinters collection and picking up the string? - Seems like that should work.

BTW, this doesn't seem to be related to the PrintForm or Printer object in the Power Packs - you might have better luck asking your question on the Windows Forms forum.

Hope this helps,
Steve Hoag Microsoft aka the V-Bee
shoagMSFT  Tuesday, October 20, 2009 9:31 PM

You can use google to search for other answers

Custom Search

More Threads

• Help fast OCX file missing
• Cannot set the icon image for PrintToPreview form of PrintForm control
• Printing Problems
• Form Size, Shape Control & Print Form
• add-in for word ,open multi word applications
• How to deselect the first row in DataRepeater when the form is loaded in Windows Application?
• Developing Chart Of Accounts - How to use trees & tree nodes
• DataRepeater Scrolling problem
• grid view printing
• Help!How can I hide the printing message?