mw.Application wrdApp = new mw.Application();
To solve that problem, I used DCOMCNFG. I have added ASPNET user and I have set the identity to Lounching user. Now that problem is solved.
Here is main problem, when I use the following statement, I am trying to open the document. I do not get any exception as well as there isn't anything in event log. but it doesn't open the file. It just hangs. I don't know what to do and what is worng.
mw.Document wrdDoc = wrdDocs.Open(ref wdFile,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing);
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Sharon WhitePosted Oct 10, 2012, 5:05 AM
You can invoke document.LoadFromFile() method directly to open existing Word document with a .NET Word component.