• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Opening Excel from a hyperlink  RSS feed

 
Ranch Hand
Posts: 148
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: 4877
117
  • 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: 148
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: 4877
117
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!