473,324 Members | 2,356 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,324 software developers and data experts.

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 2133
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Brian Hanson | last post by:
Hi, I am trying to programmatically print a pdf file via an asp.net application. I have seen other postings that mention the following code used or something similar to it in a vb.net app. ...
1
by: alb120 | last post by:
I implementing Internet Printing; but it fails: http://w23ksv/printers/ gives error on EI Version 6.0.2800.1106 (XP) "Server object error 'ASP 0193 : 80020009' OnStartPage Failed...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
1
by: DCraig | last post by:
I'm having problems printing to a line printer from both Crystal Reports and SQL Server reporting services using dotnet. When I try and print a report from an application with Crystal I get the...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
2
by: Benny | last post by:
Hello Experts, Currently I working on a web application using vs.net with C#. I require to create an invoice to a text file and print the file. I have no problem with writing to the text, but...
4
by: Lucas Ponzo | last post by:
Hi All, I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket pc ... I need to print a page. But I need that the page print on a printer installed on the web server...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: rafiki31 | last post by:
I have been hitting walls trying to find the right way to print from a web application. Here is the thing, im implementing a webapplication for a kiosk. The kiosk has its own card printer. When i...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.