I got this error message when openning a docx file
"The Office Open XML file cannot be opened because there are problems with the contents:
Details: The file is corrupt and cannot be opened."
doc.Save(docx, SaveFormat.Docx, SaveType.OpenInBrowser, this.Response);
to save the docx and send it to the browser
If I change the above code to
and then open from the folder it will work.
Have I done anything wrong? Thanks.