G
garynkill
Hi,
I am currently developing an application that requires me to automate the
tasks of embedding ole objects into word documents. I have written code that
allows me to do that using WinWord process and hiding the word application. I
observe that dialog boxes (wait for user input ) will hang my Microsoft word
process whenever there are some errors like, could not find the attachment
file and so for. So I am wondering whether is there any way to prevent this,
or is there any Microsoft Word API that allows me to timeout and catch the
timeout exception so that i can process other documents or attachments. I do
know that microsoft knowledgebase advise us to use threading. But hopefully i
no need to utilize threading to prevent this.
I am currently developing an application that requires me to automate the
tasks of embedding ole objects into word documents. I have written code that
allows me to do that using WinWord process and hiding the word application. I
observe that dialog boxes (wait for user input ) will hang my Microsoft word
process whenever there are some errors like, could not find the attachment
file and so for. So I am wondering whether is there any way to prevent this,
or is there any Microsoft Word API that allows me to timeout and catch the
timeout exception so that i can process other documents or attachments. I do
know that microsoft knowledgebase advise us to use threading. But hopefully i
no need to utilize threading to prevent this.