Word Document download issueHi All,
I formatted text in word document as per client requirement and saved the file as web page(.htm) format.
Dot net web application will read the content dynamically from DB /static content and placed it into htm file, finally will create word document.
Once downloaded the word document and when I tried to open I got below error message.
"Problems came up following areas during the load.
Missing file : c:\users\ravi\test\test3files\header.htm "
I implemented below logic for download document.
bool forceDownload = true;
string ext = Path.GetExtension(fileName);
string filetype = "";
if (ext != null)
filetype = "text/HTML";
filetype = "text/plain";
filetype = "Application/msword";
filetype = "application/octet-stream";
"attachment; filename=" + fileName);
if (filetype != "")
Response.ContentType = filetype;
Please let me know if you have solution / steps to resolve the issue. Thanks in advance.