|
-
January 15th, 2013, 05:07 AM
#7
Re: Windows 2008 service Office automation cant find printer.
You wont believe this. I finally got it to work.
Everytime I ran my Service the printer job got stuck in the queue with status "spooling...". I discovered that the following code segment somehow upheld the printing job.
while (WordApp.BackgroundPrintingStatus > 0) { sleeeeeeeeep for 250 milliseconds }
Removing this solved the problem!! The printerjob never get stuck, and runs smothly.
Unbelievable..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|