Printing From Web Service
Posted on 2004-11-12
I have been pulling my hair out on this one for quite some time...any help would be appreciated!
I have a web service running on a Win 2000 Advanced Server. The service needs to print something on command from the client application to a NETWORK printer.
For some reason, when we send the print job, nothing happens. That is, no errors, nothing in the printer's queue, nothing.
I CAN print from the server using Notepad. So I know the printer works and the server can talk to it.
THe printer we are trying to print to is configured as the Default printer, and the printer is configured to allow Everyone to print from it.
One thing that I am thinking is that when noone is logged into the server, how do you configure a printer as the default for that case? That is, when I login into the server, and set up a printer, I assume that it is setup for my user profile. But what happens when I log off and noone is logged in? How can I set the printer up for that case?
I also tried setting up a LOCAL printer that is mapped to the network port. We had success with this when developing the webservice on another PC using LocalHost for the server. But since we moved the code to a production web server...nothing.