doc2pdf.exe is fail when invoked from application

We were trying to use command line doc2pdf.exe for conversion of documents into JPG files. Manually running it from the command prompt works just fine, but when trying to invoke doc2pdf.exe from code, it does not produce any output files, and without any error.

Checking the debug log "doc2pdf.log" inside "docPrint Pro v6.0" folder, it seems the only difference between the successful conversion (run manually) and the failed conversion (run from is that the successful one has extra lines of info about output files near the end, ie:
[DEBUG] [File: 1] 'c:\inetpub\wwwroot\ABC\dd_7\Details\ERA Computer Setup Steps_0001.jpg'...
[DEBUG] [File: 2] 'c:\inetpub\wwwroot\ABC\dd_7\Details\ERA Computer Setup Steps_0002.jpg'...
[DEBUG] 'c:\inetpub\wwwroot\ABC\dd_7\Details\ERA Computer Setup Steps.jpg' series files are created successful...
Exit the application...

whereas the failed one just has:
Exit the application...
Please note that we use the same method of creating a window process to run 7Z for zip/unzip without any problem.

Appreciate any help to direction to get it to work.
You can arrange MS Word run from an interactive user account instead of default Local System user account, because MS Word is not work when you run it from VB.NET or Local System user account, please refer to following web pages for more information,

You can also refer to following web page to set MS Word DCOM run inside an interactive user account, please look at following web page for more information,

also, in "Console Root / Component Services / Computers / My computer / DCOM Config" option, "Your COM Name" should equal to "Microsoft Office Word 97 – 2003 Document" in your system, please give enough permission to "Microsoft Office Word 97 – 2003 Document" DCOM in your system to try again, you can also run "Microsoft Office Word 97 – 2003 Document" DCOM from an interactive user account to solve the permission restrictions in default system account.


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!