Printing from a Windows Service

Posted by Andre on Stack Overflow See other posts from Stack Overflow or by Andre
Published on 2010-05-17T14:59:56Z Indexed on 2010/05/17 15:10 UTC
Read the original article Hit count: 251

Filed under:

Ok, I am trying to print a page from a windows service that I installed using a Visual Studio setup project.

At first I set the Account property yo Local System, but it will tell me that there are no printers installed (and there are). So I changed it to user and now it just doesn't print (no error or anything).

I did some Googleing and basically it said that "Interact with Desktop" should be enabled. To programatically do this you need to edit the registry settings for this service (which really is second prize). I tried to manually set it on the properties dialog under Services, but then I need to change the Account back to Local System, which brings me back to the "No Printers Installed" problem.

Any ideas?

© Stack Overflow or respective owner

Related posts about windows-services