473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Allowing ASP.NET user access to printers on server

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
Nov 19 '05 #1
5 2034
Rik Hemsley wrote:
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
Nov 19 '05 #2
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
Nov 19 '05 #3
where is the link for that?

"Rik Hemsley" <ri*@rikkus.info> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 19 '05 #4
Tampa.NET Koder wrote:
where is the link for that?


http://support.microsoft.com/default...b;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
Nov 19 '05 #5
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?

"Rik Hemsley" wrote:
Tampa.NET Koder wrote:
where is the link for that?


http://support.microsoft.com/default...b;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

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Aaron_TekRecycle.com | last post by:
Someone must have done this before?!? I have VBS code that will Enumerate all the Printers in the AD and Add the Printer Connection to the client... I'm just not a web developer so I need some...
1
by: Sven Erik Matzen | last post by:
Hi, We have a server side application that should be able to print to network printers. The problem: How can I setup printers for the IUSR_SRV-... account in a way that I can use them from a...
0
by: Lord Merlin | last post by:
I wonder if anyone could suggest some options to this problem for me: I want my clients to be able to print straight to some of our printers over the internet. The reason: 1) So I don't have to...
9
by: Richard W Collens | last post by:
Hi Folks, Just wondering if there is any real need to convert an application from 2000 or XP to 2003, if the application is not going to grow or change. Ive had a couple people ask about it...
6
by: mg | last post by:
The following .exe and its parameters work correctly from the command prompt (it prints x.pdf without prompting the user. acrord32.exe /t "c:\exportfiles\x.pdf" "HP LaserJet 3300 Series PCL 6"...
1
by: Liverpool fan | last post by:
I have a simple user control that consists of a lebel and a dropdown list that I am using for page navigation. I want to cache this control so that it is reused between pages, however when I add...
4
by: Rik Hemsley | last post by:
Hi, Our web application impersonates a domain user when it runs. Usually, the printers visible to the application are the same as those visible to the domain user. At one installation, the...
2
by: Tessa | last post by:
Hi, We have a .net web application, and are trying to use PrinterSettings.InstalledPrinters to list the printers installed on the webserver. (Windows 2003 server R2, IIS 6, .net framework 2.0.)...
9
by: =?Utf-8?B?Sm9obiBBdXN0aW4=?= | last post by:
I have an app that prints entry tickets. If the printer driver is not set up exactly to detect the black mark on the back of the ticket, the tickets do not print correctly. Because of this, all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.