Hi Arun, I've ran into something like that a few months ago. To open a word document embedded in IE, you have to configure the client computers (IE) to have that behavior. If you can control all the client computers, just write a startup script that runs when XP boots up. If you can't control the clients (because your not in an intranet), you will not be able to achieve exactly what you want easily...
If the only thing you want is to automatically open word with the right document, you can use "word automation" (if you don't know that, I can explain further on). But using automation will prompt word in a new window, not embedded in the web browser... For my purpose, I always use automation when I need to open word automatically. WebMasterSam --- In [email protected], "Arun" <[EMAIL PROTECTED]> wrote: > > Hi, > > i have the following code written for embedding a word document in a > web page everything is ok but i do not want it to promt for saving > the file...i just wat it to display word file in the browser > itself....so far with this code i am not able to achieve it....it > still prompts...please help.. > > Thanks in advance!! > > Arun > > here is the code: > > string filepath = Server.MapPath("IE.doc"); > FileInfo file = new FileInfo(filepath); > if (file.Exists) > { > Response.ClearContent(); > Response.ClearHeaders(); > Response.AddHeader("Content-Disposition", "inline; filename=" + > file.Name); > Response.AddHeader("Content-Length", file.Length.ToString()); > Response.ContentType = "application/ms-word"; > Response.WriteFile(file.FullName); > Response.Flush(); > Response.End(); > }

