problems accessing printers over citrix

  • Thread starter Thread starter Mad Scientist Jr
  • Start date Start date
M

Mad Scientist Jr

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.Item(0)
'For Each sPrinterName In
PrintDocument1.PrinterSettings.InstalledPrinters

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

'MsgBox(PrintDocument1.PrinterSettings.InstalledPrinters.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
 
Have you tried something along these lines?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top