PrinterSettings.InstalledPrinters Not all printers showing up.

I'm trying to programmatically print a local ReportViewer report due to the lack of a print button on the report viewer's toolbat for local reports.  Using the following code running on my local machine's IIS:
        Dim strPrinter As String
        Dim prtdoc As New PrintDocument()
        Dim strDefaultPrinter As String = prtdoc.PrinterSettings.PrinterName
        For Each strPrinter In PrinterSettings.InstalledPrinters
            Response.Write(strPrinter)
        Next
I have 3 printers intalled:
"Adobe PDF"
"HP LaserJet 5 on prtserv2"
"Microsoft Office Document Image Writer" *set as default

The only printer I get from the For Each loop is "Adobe PDF".  Anyone got any suggestions?

LVL 4
Steve SiricaSenior Web Application EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve SiricaSenior Web Application EngineerAuthor Commented:
Never mind it was a premissions problem.  Once I added everyone to see the other printers it showed up.
0
WillHudsonCommented:
Despite me having no knowledge whatsoever on ASP.NET even i could see it was a permissions problem
0
Steve SiricaSenior Web Application EngineerAuthor Commented:
Smart alec answers need not apply, but thanks for the input.
0
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.

WillHudsonCommented:
Yay! You should know not to link from the lounge, otherwise you will get smart alec answers :P
0
phileocaCommented:
It wasn't a programmatical error at all. This was a permissions problem.

here, run rsop.msc to see more stuff about your computer.

HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve SiricaSenior Web Application EngineerAuthor Commented:
You appear to be fairly new to these parts, so I'm going to give you a one time pass.  If I say go and post permissions I mean go to question and post permissions not "Despite me having no knowledge whatsoever on ASP.NET even i could see it was a permissions problem"  

See the difference?  One is what I instructed to do...the other is not!
0
Steve SiricaSenior Web Application EngineerAuthor Commented:
Thanks Kyle.  You follow directions well.
0
phileocaCommented:
Glad I could help.

rsop.msc lets you know all about permissions and domain crap.  :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

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.