Hi,
I'm creating a word file using File Operation.
Later i'm opening the file, some time i'm getting message like,
.doc is locked for editing by user. see my below code,
Word.Application wdApp = new Word.Application();
object obj = System.Type.Missing;
object docPath = bData.Path;
wdApp.Documents.Open(ref docPath, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj);
So, after doing my changes i'm getting error in the save as method,
wdDoc.SaveAs(ref objDoc, ref obFormat, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref objMissing);
I'm getting error like ,
Word cannot complete the save due to a file permission error.
please help me.