Posted on: 3/6/2014 10:44:16 PM | Views : 638

Hi -
I'm using the following code to open a word document inline. The code below displays an Open/Save/Cancel dialog box. If I click open, the word document is displayed in Read-Only and does not allow the user to edit it unless they save it and then open it. Is there any way I can get word to display "Edit Document" option?
string localCopy = @"C:\Data\testnew.docx";  System.IO.FileInfo file = new System.IO.FileInfo(localCopy);  if (file.Exists == true)  {    Response.Clear();    Response.AddHeader("content-disposition", "inline; filename=" + file.Name);    Response.AddHeader("Content-Length", file.Length.ToString());    Response.ContentType = "application/vnd.ms-word.document.12";    Response.WriteFile(file.FullName);    Response.End();    Response.Flush() ...

Go to the complete details ...