|
Code I’m using is:
Response.ClearContent();
Response.ClearHeaders();
Response.Clear();
Response.ContentType = "application/msword";
Response.Charset = "";
Response.AddHeader("Content-disposition", "inline; filename=ExportPath");
Response.AddHeader("Content-Length", sFileLength);
Response.WriteFile(ExportPath);
Response.Flush();
Response.Close();
System.IO.File.Delete(ExportPath);
If file to display was not MS-Word neither MS-Excel, as a PDF file, then dialog box is not showed.
How can I in MS files to such dialog not be showed?
A.L.
__________________
<span style='color:red'>El Hombre que tiene Amigos, debe mostrarse Amigo...</span>
|