Im try to open files (inline mode) in browser. It's working fine for notepad and PDF files, but not for MS Office files(MS Word, MS Excel). For Ms office files I always get download screen in browser. Im using following code:
public FileStreamResult OpenDoc(string fileName, string contentType){
Response.AddHeader("content-disposition", "inline; filename=" + fileName);
return File(fileStreams, contentType);
}
Can you help?