asp.net - Possilble to auto open a downloaded word document downloaded in browser -


the requirement sent word document browser, , automatically open on ms word can view , edit word document.

the solution can found require end user click dialogue window in order open word document in office when document download browser.

is way, user has click dialogue window before office can open downloaded word document?

browser dialog

it kinds of make sense security reason not let browser automatically execute local application (word.exe) on local machine, still want confirm that.

if answer yes, know how that?

edit: found out have use inline instead of attachement, otherwise ask option event browsers setup properly.

response.addheader("content-disposition", "inline;filename=clientquotes.docx");  

after made change, browser auto open word document without asking action.

if understand correctly, want change behaviour of browser automatically open downloaded files. far i'm aware pretty painless process when comes firefox , google chrome, on ie it's not simple.

firefox

changing download actions

this not affect media embedded in web page - links files themselves.

  1. click menu button menu , choose options
  2. select applications panel.
  3. the applications panel display. select type of file want change default action.
  4. the action column give drop-down menu, options on action take, whenever click type of file.

  • alwaysask: prompt select action want firefox take when click on type of file. can useful if firefox automatically saving file type or opening program , want asked do.
  • save file: save file computer using downloads window, whenever click type of file.
  • open file application or plugin of choosing.

    1. click ok close options window after making changes

adding download actions

  1. on web, find link file matching type want add.
  2. click on file link download it.
  3. select how want firefox handle file:

    open with: saves file temporary folder , opens in default application file type. select application, click browse....

    do not choose firefox open file type, doing can cause  problem firefox repeatedly opens empty tabs or windows after click on link. 

    save file: saves file download folder (specified in firefox general panel).

    in opening file window, check mark do automatically files on.

enter image description here

click ok.

is automatically files on disabled?  can happen if website's server incorrectly specifies  internet media type of file. can happen if server assigns  "content-disposition: attachment" file.  

reference

google chrome

if want types of file open after they've finished downloading, click arrow next file button in downloads bar , select open files of type.

reference

ie

from can gather ie have change registry keys. can refer link further information.

i hope answers question.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -