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 Answer
Know the answer? Post it. Somebody with the same question will find it here.


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