View Single Post
Old Feb 23rd, 2005, 6:36 PM   #3
see07
Programmer
 
Join Date: Oct 2004
Posts: 37
Rep Power: 0 see07 is on a distinguished road
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>
see07 is offline   Reply With Quote