hi there.. I am trying to create a word file and soon after creation i am trying to open it as well..
so far there are only four methods to save a Document object none of them support feature to save and then open after that..
Could you pleae help me in this regard
My code is here
Document doc = custom_method("text replacing mail merge field");
doc.Save(savedFileName, SaveFormat.Doc);
Response.WriteFile(savedFileName);
Response.End();
.......................................this does not work.. and throws an error. Perhaps doc is still busy in writing the file and does not release the file.. and response.write is trying to open it.. but in any case it does not even save the file and throws a .net file system error on respose.write file line.