• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3757
  • Last Modified:

Get installed printers using System.Drawing.Printing.PrinterSettings.InstalledPrinters

Hi,

I'm using ASP.NET 2005 with VB.NET.  I’m trying to display all printers installed on my laptop using the drop down list control.  The following code does not display the installed printer on the server at "\\Beatles\Dell Photo AIO Printer 922"

        ddlPrinter.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters


Any Suggestions?
Thanks,
Denise

0
DeniseGoodheart
Asked:
DeniseGoodheart
  • 2
  • 2
1 Solution
 
raterusCommented:
Unless your laptop is the webserver, you aren't going to retrieve a list of client printers using that method.  In fact, there is no way to do that using asp.net.
0
 
DeniseGoodheartAuthor Commented:
Hi raterus,

My laptop is the webserver.  I thought it was some how possible because it displays the printer Microsoft Office Document Image Writer wtihin the drop down list control, but not the \\Beatles\Dell Photo AIO Printer 922.  When I print from my laptop, it uses \\Beatles\Dell Photo AIO Printer 922

Thanks,
Denise


0
 
raterusCommented:
Probably because the printer isn't installed for the ASPNET or NETWORK SERVICE account.  Depending on the authentication model you've selected for your application, you may be able to add <identity impersonate="true" /> to web.config and see the printers your account would have on the computer.  You'd have to be using integrated windows authentication for this to make a difference.  This is all a longshot guess, since I've never had to write code to display available printers on the server.

0
 
DeniseGoodheartAuthor Commented:
Hi Raterus,

Thanks for your comment.  I'm working on a Web project that requires I use Crystal Reports .NET 2005.  I found out today that the reports need to be available for the Internet, and not just an Intranet application.  So finding available printer servers is no longer necessary.  So now I need to figure out how to make printing available for Internet users, so I'll post a new question.

Thanks,
Denise
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now