Well, i can think of only one viable solution. · Develop an application, able to properly download and shell the file. · Expose its interface, so it's available to COM. · Embed this control in the Download page, and invoke it.
There's a nice article by David Sandor about the last part: http://www.c-sharpcorner.com/UploadFile/dsandor/ActiveXInNet11102005040748AM/ActiveXInNet.aspx Good luck, and hope it works for you! - Leon On Mar 16, 7:42 pm, OPar <[email protected]> wrote: > I am trying to figure out a way to download a file onto the users > computer from an ASP.NET webpage and then open that file > automatically. > > I'm using the code shown below to download the file. This also give > the option to open the file, but it opens it in the browser -- not the > user's hard drive. > > How can I open the file that was download to the user's hard drive? > > Response.ContentType = "application/vnd.ms-excel" > Response.ContentType = "application/x-msdownload" > Response.AddHeader("Content-Length", fileInfo.Length.ToString) > Response.WriteFile(filePath) > Response.End()
