By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

problems accessing printers over citrix

P: n/a
I have a vb.net app that is running over citrix, and am trying to grab
a list of printers on the user's systems, however I am getting empty
names:

'For Each sPrinterName In
PrintDocument1.PrinterSettings.InstalledPrinters.I tem(0)
'For Each sPrinterName In
PrintDocument1.PrinterSettings.InstalledPrinters

however, I am able to see the correct number of printers:

'MsgBox(PrintDocument1.PrinterSettings.InstalledPr inters.Count.ToString
& " printers in this system")

therefore I think I am just using the wrong object path. Can someone
say what the correct way to see the printer names?

Thanks
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Have you tried something along these lines?

Dim i, NumPrinters As Integer
NumPrinters = System.Drawing.Printing.PrinterSettings.InstalledP rinters.Count
For i = 0 To NumPrinters - 1
Msgbox(
System.Drawing.Printing.PrinterSettings.InstalledP rinters.Item(i))
Next

"Mad Scientist Jr" wrote:
I have a vb.net app that is running over citrix, and am trying to grab
a list of printers on the user's systems, however I am getting empty
names:

'For Each sPrinterName In
PrintDocument1.PrinterSettings.InstalledPrinters.I tem(0)
'For Each sPrinterName In
PrintDocument1.PrinterSettings.InstalledPrinters

however, I am able to see the correct number of printers:

'MsgBox(PrintDocument1.PrinterSettings.InstalledPr inters.Count.ToString
& " printers in this system")

therefore I think I am just using the wrong object path. Can someone
say what the correct way to see the printer names?

Thanks

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.