Member 2324483 wrote:
If in any case end user have very minimum rights i may not be able to create file even. Here maybe i should think of memory stream?
AFAIK, *every* user will have read + write access to a temp directory. Path.GetTempPath() is your friend. I doubt Word can handle in-memory files.
Member 2324483 wrote:
Are you suggesting to launch directly ms word, excel or acrobat softwares and display docs in them instead of using browser? if yes, the problem with this approach is i need to know and code for all types of docs, if i use browser i no need to bother about this as far as i supply content type and byte array.
Yes, that's what I suggest and it's the cleanest and the easiest. You don't have to handle any extra types, Process.Start("yourfile") will open it with the default program. It's opening with the default browser that is dubious.
Cheers, Vikram. (Proud to have finally cracked a CCC!)