Allowing ASP.NET user access to printers on server

R

Rik Hemsley

Hi,

My ASP.NET application (running on IIS) doesn't see any of the printers
installed on its server. I'd like it to be able to see, and print to,
all printers.

Is there a way to give the ASP.NET user this kind of access?

Apologies if this is an IIS newbie question!

Cheers,
Rik
 
R

Rik Hemsley

Rik said:
Hi,

My ASP.NET application (running on IIS) doesn't see any of the printers
installed on its server. I'd like it to be able to see, and print to,
all printers.

Is there a way to give the ASP.NET user this kind of access?

Google showed me an explanation which says I should copy some registry
values.

http://support.microsoft.com/kb/184291/EN-US/

I followed the instructions, restarted IIS, and I'm still told that I
have no printers installed.

Exception Details: System.Drawing.Printing.InvalidPrinterException: No
printers installed.

Any ideas?

Cheers,
Rik
 
R

Rik Hemsley

Microsoft say that printing using the .NET Printing classes in a web
application or Windows Service is not supported. This behaviour is 'by
design'.

Wonderful.

Rik
 
R

Rik Hemsley

Tampa.NET Koder said:
where is the link for that?

http://support.microsoft.com/default.aspx?scid=kb;en-us;324565

BTW, I managed to find my printers and print to them. The only thing
that I couldn't work out how to do was find which printer is default.
The usual ways of figuring it out don't work when in ASP.NET. This
doesn't really matter to me, thankfully.

I don't know why MS are saying that you can't print using the .NET
Printing classes from ASP. Maybe they really do mean vanilla ASP and not
ASP.NET. It's hard to tell from the link above whether or not they are
confused about the names of their own products. It looks like it to me.

Rik
 
G

Guest

How were you able to find printers and print to them? I have an ASP.NET
application on my development machines that runs fine and prints to the
printer just like it's supposed to. When I load it on my laptop to demo to a
client, I get a message that says:
No printers installed.
Exception Details: System.Drawing.Printing.InvalidPrinterException: No
printers installed.

Any ideas?
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top