How to convert from Office documents to PDF files from scheduled task?

VeryDoc:

We have doc2any v2.2.0.1 and we got a new server (windows server 2016 w/MS Word 2016 only installed and all Office Tools). I am having trouble getting doc2any to run on this new server as a scheduled task.

When I run the following command using cmd using "Run as Administrator", it converts the file:

D:\doc2any_cmd\doc2any.exe "-$" "XXXXXXXXXXXXXXX" "D:\Scheduler\GradConvertUpload\Resume.docx" "D:\Scheduler\GradConvertUpload\Resume.pdf"

I can also execute the entire program that would have run as a scheduled task if I run it manually using the method above. However, when I try to run as a scheduled task, doc2any just hangs after briefly seeing doc2rtf.dll.

Is there anything I need to make sure of when I run the scheduled task (runs as a different user, but should also be an admin)?

Thanks,
Customer
---------------------------------------------

image
Thanks for your message, you can run doc2any.exe or MS Office DCOM inside an interactive user account instead of system user account, you will able to get it work properly.

Please look at following web pages for more information,

https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm

https://www.verydoc.com/others/configure-word-and-excel.htm

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

If you still can't get it work, please feel free to let us know, we are glad to assist you asap.

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!