This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening Excel from a hyperlink  RSS feed

 
Ranch Hand
Posts: 144
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an internal webpage of which has a couple of excel files and a couple of word documents. We need the users to be able to open these documents, edit them then save them just the same as they would in excel. I know most browsers block this from happening but with more applications becoming web based this must have come up before?  Does anyone have a suggestion on how to do this?

I have tried doing the <a href="file:///path/file.xlsx"> link but that does not seem to work.

On a side note this is on a file server and some of the folder names are a little on the long side (20-30 characters) but nothing that would excede the limit on path names.

TYIAF
 
Saloon Keeper
Posts: 4472
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As to editing Office files in the browser, I think just a few browser/OS combination can do that, most likely Edge and IE on Windows. Other browsers and OSes need to download the file for opening it in an external application (like MS Office or LibreOffice). If the file was served via a file URL that points to the file server, saving the file should work, though, assuming the client has write access to it. Also, you need to consider what happens if two users edit the file simultaneously.
 
John Morgan
Ranch Hand
Posts: 144
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the delay in responding... What I am trying to accomplish is when a user clicks on a hyperlink MS Excel opens with a specific spreadsheet.  This is a function that is working in most of our applications (both excel and word opening up) but anything that I try seems to be blocked from opening up the applications. This seems to be as a result of new security that has been put into modern browsers but as applications are being turned into web apps I am trying to find the best solution to address this.
 
Tim Moores
Saloon Keeper
Posts: 4472
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a browser setting that determines what should happen with files, whether to download or display, and if to display, which application to use. For example, in Firefox it's configured under Preferences -> General -> Files and applications
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!