doc2pdf.exe is fail when invoked from vb.net 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 vb.net 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 vb.net) is that the successful one has extra lines of info about output files near the end, ie:
===================
.........
Result=1
[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:
===========
Result=1
Exit the application...
===========
Please note that we use the same vb.net 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.
Thanks
----------------------------------------------
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,

https://www.verypdf.com/wordpress/201401/help-with-automating-doc2pdf-exe-from-a-scheduled-task-40264.html

https://www.verypdf.com/wordpress/201310/run-docprint-pro-doc2pdf-exe-from-a-service-account-to-convert-office-files-to-pdf-files-39067.html

https://www.verypdf.com/wordpress/201310/how-to-run-doc2pdf-exe-which-included-in-docprint-pro-from-web-service-38917.html

https://www.verypdf.com/wordpress/201201/how-to-call-doc2any-exe-or-htmltools-exe-from-a-service-20896.html

http://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html

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,

http://verydoc.com/doc-to-any-faq.html

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.

VeryPDF

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!