I am developing a program that is intended to run as a service on an XP Pro machine. It processes files and prints them to a printer automatically in the background without any user interaction. The printer that I use is configured to be the system's default printer. When the program runs it works fine when it is not running as a service. However, when it is running as a service, instead of printing to the default printer, it tries to print to the Microsoft Office Document Image Writer. I have not been able to find any information on configuring the system so that I can get my service to use the designated default printer. Any ideas would be appreciated. Thanks in advance.

Service won't use default printer
Tao Lin
We made some progress on this issue and have been able to get it to work (for the most part). Apparently, the printer was not being recognized as the default printer wen running as a service. It appears that when a service starts, it must start up with a log-on user and the user that the service starts 'under' must have it's default printer set to be the printer of choice. So we reconfigured to have the service log in as a user that has the default printer set properly. In this case the admin user.
I would appreciate more insight if possible though.
Our service is written in java and uses the Tanuki Java Service Wrapper. We also use a headless browser instance to send print jobs to the printer. That part is pretty straight forward. The trick was in having a default printer set up correctly for use by services. Again, I would appreciate any more info about the rules regarding services, users, and printing. It is still flaky sometimes.
Thanks.
macrohard1
Hi Packrat,
The engineer didn't have any other insights for you. Sorry.
I'm glad you were able to get the main issue resolved.
-brenda (ISV Buddy Team)
AlanKohl
Packrat, I escalated your issue to a Microsoft Support Engineer, and he asked me to ask you this:
“Can you please let us know the programming language in which the Windows Service is written Also if you could let us know the repro steps and sample application to test the behavior”
If you can do this for us, please send the info to budsup@microsoft.com and we will pass that to the same engineer and we will try to get you answers.
Thanks
MS ISV Buddy Team