469,936 Members | 2,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

Printing On the Server

Hi --

I have an ASP (not .Net) web application that needs to Print Server Side.

In response to let's say Orders being placed, the server would perhaps print
the pick sheets to some printer in the warehouse.

This is purely hypothetical application description as the actual
application is much more convoluted, but basically does this.

When I am on the server itself, and access it with IE on the same machine it
works, but when I am remote then it doesn't.

The printing itself is being done in a VB activex control. It sets a printer
active by device name, and then uses the Printer object to print a hand
coded report. The printers themselves are placed into the registry by
copying the hives containing them to the hkey_users.default.

Basically this all works when you are physically on the server. Once you go
to a different machine, it stops working. I assume that it has something to
do with what happens with the IUSER_<MACHINENAME> or the RUN AS aspect of
the IIS service.

Any suggestions would be welcomed.

Jul 19 '05 #1
5 2031
This is a guess. But I think if you set a password for the IUSR account,
then log in as that user, you can add printers to the profile. I would
assume that you would then be able to print to it.

Alternatively, you could tell IIS to run under your profile, by changing the
anonymous access settngs in ISM.

I'd bet (a very small bet) that if you look in Event Viewer, you'd see an
error indicating that your print failed because no printer was installed.

Hope that helps
Tom B

"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Hi --

I have an ASP (not .Net) web application that needs to Print Server Side.

In response to let's say Orders being placed, the server would perhaps print the pick sheets to some printer in the warehouse.

This is purely hypothetical application description as the actual
application is much more convoluted, but basically does this.

When I am on the server itself, and access it with IE on the same machine it works, but when I am remote then it doesn't.

The printing itself is being done in a VB activex control. It sets a printer active by device name, and then uses the Printer object to print a hand
coded report. The printers themselves are placed into the registry by
copying the hives containing them to the hkey_users.default.

Basically this all works when you are physically on the server. Once you go to a different machine, it stops working. I assume that it has something to do with what happens with the IUSER_<MACHINENAME> or the RUN AS aspect of
the IIS service.

Any suggestions would be welcomed.

Jul 19 '05 #2
"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Hi --

I have an ASP (not .Net) web application that needs to Print Server Side.

In response to let's say Orders being placed, the server would perhaps print the pick sheets to some printer in the warehouse.

This is purely hypothetical application description as the actual
application is much more convoluted, but basically does this.

When I am on the server itself, and access it with IE on the same machine it works, but when I am remote then it doesn't.

The printing itself is being done in a VB activex control. It sets a printer active by device name, and then uses the Printer object to print a hand
coded report. The printers themselves are placed into the registry by
copying the hives containing them to the hkey_users.default.

Basically this all works when you are physically on the server. Once you go to a different machine, it stops working. I assume that it has something to do with what happens with the IUSER_<MACHINENAME> or the RUN AS aspect of
the IIS service.


Is this your problem?
http://support.microsoft.com/?kbid=184291

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
More information:

The problem seems to be that if the printer is local to the server it will
work, but if it is a networked printer, then it will not. Is there some
issue with local system account and network resources?

Jul 19 '05 #4
Tom --

I have already used that to get the system working. That will work as long
as I am sitting at the server using the IE that is on the same machine. If I
go over to the next machine and connect, then it will not print.

-- A

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:bp*********@kcweb01.netnews.att.com...
"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Hi --

I have an ASP (not .Net) web application that needs to Print Server Side.
In response to let's say Orders being placed, the server would perhaps print
the pick sheets to some printer in the warehouse.

This is purely hypothetical application description as the actual
application is much more convoluted, but basically does this.

When I am on the server itself, and access it with IE on the same machine it
works, but when I am remote then it doesn't.

The printing itself is being done in a VB activex control. It sets a printer
active by device name, and then uses the Printer object to print a hand
coded report. The printers themselves are placed into the registry by
copying the hives containing them to the hkey_users.default.

Basically this all works when you are physically on the server. Once you

go
to a different machine, it stops working. I assume that it has something

to
do with what happens with the IUSER_<MACHINENAME> or the RUN AS aspect

of the IIS service.


Is this your problem?
http://support.microsoft.com/?kbid=184291

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #5
Are you saying, that it will print to a local printer from a remote machine?

If so, then there are two possible solutions.
1) Run IIS under a domain account that has permission to print to the
printer
2) Print directly to the printers ip address (assuming it has one) by
setting it up as a local printer connected to a standard TCP/IP port.

Tom B
"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl...
More information:

The problem seems to be that if the printer is local to the server it will
work, but if it is a networked printer, then it will not. Is there some
issue with local system account and network resources?

Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Brian Hanson | last post: by
1 post views Thread by alb120 | last post: by
9 posts views Thread by Jody Gelowitz | last post: by
5 posts views Thread by Mark Preston | last post: by
4 posts views Thread by Lucas Ponzo | last post: by
18 posts views Thread by Brett | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.