If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Printing from a windows service. Problem.

I have been working on a project for a customer which prints some labels from collected data. The final step was to build a service which would print the tickets automatically as needed. I had tested everything in a regular exe before moving the code to the service and all was well but when I created the service nothing is printing. I added some enteries into the log to try and track down the issue and I could see that the service was running, it enters the routine that gets the data to be printed and attempts to print it but the print event does not appear to fire and then the code seems to jump out of the routine that called the .Print method. I am totally confused at this point.
Here is a segment of the routine that formats the data for printing. I have highlighted the lines I added for debugging purposes and of course there is a lot more code in this main procedure but does not seem important for this issue.

There is no sign that the print event was entered in the log as well as the entry I have at the bottom of the sub not being there as if when it hits the print statement it just jumps out of the routine then enters it again a few seconds later as there are still tickets that need to be printed.
Also if the code was working properly there is data there to print to both printers it should do 1 print to printer 1 and then should do one to printer 2 but only the first one ever shows up and nothing prints.
The service is set to run in the Local System account if that makes a difference.
Anyone have any idea what could be the problem here?

Edit: After more research it appears that it has something to do with the account not having access to the printer. I have tried using my own account and the system administrators account but both with the same results.

I have decided to install an normal windows exe for now to do that task but I really would like to do this with a service so that no user needs to be logged in on the machine and be able to run it on the server.