views:

260

answers:

1

Hi , I am using the Interop word ApplicationClass.Documents.Open method to open a word document. In my application when i use the below statement it hangs as in the IE shows its still loading but it never does anything.

_Document aDoc = WordApp.Documents.Open(ref fileName, ref oMissing, ref readOnly, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref isVisible, ref oMissing, ref oMissing, ref oMissing, ref oMissing);

I tried the same thing by creating a dummy website and it worked.

The problem is it just does not open the word document in my application.

Anything wrong in this code or is there something more i need to add to this ?

I also see a tread which is created and executed but have no clue as to from where its originated.

Regards, Fer