Word Interop Not Working In A Scheduled Task -
I am currently developing a script that takes Word document, opens it in Word, and then the Word file Prints everything that works well on a PDF manually running on your machine or server. The problem occurs when I try to run it as a fixed task
from the requirements One is that it is overnight without any interference Ia should be. When I set a schedule to do this and the security option "works only when the user is logged on" everything works just fine. The problem is that anyone should be logged in or without. If I have set the function to "Do not log on to the user to run or not", then the script fails in the following line:
wordDoc = MSWord.Documents.Open ( Ref file, conversion, ref refFalse, ref RefTrue, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, referee RN, Riff RN, Referee RN);
MSWord.Documents.Open ()
works but returns empty.
This work is running on Office 2007 with Windows Server 2008
Do I need another way for this?
I believe that many people tried to do something close to your efforts and failed. In server-like mode, it is very rude about not being able to run any office-based solution (accessibility) etc.
Look and
I know that this is probably not the answer you were looking for, but it is anyway!
Comments
Post a Comment