launch doc2pdf.exe and wait until it be finished completely

I have just purchased the PDF convertor and am trying to get this working in my application. I am using the command line options to convert documents. Right now I am busy with word documents. Here is the problem:

1. On converting PDF documents, I call the doc2pdf command using the Shell command. When the document has finished converting, the shell command completes. So I know when the shell is finished that I can look for the converted documents. So this works fine.

2. On Word documents, I launch the doc2pdf command using the Shell command. Your doc2pdf then launches Word, and I am assuming then prints to the document printer. The problem is that the shell command finishes executing long before word has finished converting. So when the shell has finished, I will need to wait for the images. But on a big document, how long do I wait, as the images start appearing way before the document is finished.

So I can't just wait forever. There might then be a problem with the document, and it doesn't print. So how long do I wait before I then know that the document failed?

The way it should work is the same way as the PDF documents. It only comes back when the document has finished converting.

Let me know how I can get this working correctly, without waiting.

The other problem is that the word document actually opens for the user to see then closes. This is a bit clumsy, as there might be a user on the server doing things, and it will be annoying for him if Word keeps on popping up.
================================
Please refer to a ShellAndWait() function at below web page, you can call this function to launch doc2pdf.exe and wait until it be finished completely, we hoping this function will helpful to you,

http://www.cpearson.com/excel/ShellAndWait.aspx

The current version of doc2pdf.exe hasn't an option to "stop close Word application", we will try to implement this function in the future releases, we will let you know after this function is available.

VeryPDF
================================
Thanks for that. Let me know when you think this option will be available.
================================

Thanks for your message, we will let you know after this function is available.

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

This entry was posted in docPrint Pro and tagged . Bookmark the permalink.

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!