In my organization, which uses MS Edge as its default browser, there is a regularly updated and frequently opened Excel spreadsheet which we host on an internal IIS server and to which we link from a different internal ASP.NET website, also on IIS. Every time someone clicks the link, the file gets downloaded again and has to be manually opened in the user's desktop copy of Excel even though it's possible for Edge to view MS Office files now (through the Office web app) and this setting is on by default. Whether or not this "Open Office files in the browser" option in Edge is enabled has no bearing on what happens. Dragging and dropping, or Ctrl+O-ing the downloaded file just makes Edge "download" it again.
My questions here:
- how exactly does Edge decide what MS Office files it can open? Are only certain versions of Office supported? I have tried both the default .xlsx filetype and the Office 97-2003 .xls with the same effect; the file is likely not in any way malformed or peculiar, as my test files were almost empty spreadsheets with one cell of text
- is there some mechanism to force a browser to try to open a file it supports, something like the opposite of the
download
attribute on ana
tag?Content-Disposition: inline
seems like what I'm looking for, but inspecting the download in the network tab shows me that this header isn't present, soinline
should be the value assumed by default. - I have considered embedding a copy of the document stored in OneDrive, but this feature seems to have been deprecated. Is that the case or is it something that can be disabled by an organization?
As a last resort, we could instead store the document as a PDF (it is essentially read-only).
Tried:
- forcibly enabling the "Open Office files in the browser" option with a group policy/registry key
- simply opening the link to the file
- opening locally stored Excel files with Edge
Everyone is signed into Office 365 with their Microsoft account, which I've also seen mentioned as a requirement.
Expectations:
- the Excel file is displayed to the user in a new tab using Edge's Office viewer feature
Reality:
- the Excel file is downloaded