?
Solved

USE HTML to redirect a webpage to a local Xcel file.

Posted on 2016-11-17
2
Medium Priority
?
78 Views
Last Modified: 2016-11-30
Thank you all in advance!

I am trying to make an excel file stored on a local drive available to our users when they click on a link. The link is on a page hosted outside our intranet.

If I enter the following into a web browser I can get the xcel file to open with no issues:

file:///K:\SomeFolderName\Reports\Reports\Data\test.xlsx

thus my thought was to create a simple a webpage, "SimplePage" with the following HTML code so that when users click a link tied to "SimplePage" the page would actually open excel.

heres the HTML:


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=file:///K:\SomeFolderName\Reports\Reports\Data\test.xlsx">
</head>

<body></body>
</html>

The page opens up but no excel.

thanks again!

-vn
0
Comment
Question by:Victor Nares
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 41892373
There is a 'security boundary' between 'http' and 'file' protocols.  A page loaded thru 'http' is not allowed to access files loaded with 'file'.  This is done to prevent malicious web sites from accessing your local files.
0
 

Author Closing Comment

by:Victor Nares
ID: 41907591
Thank you Dave. this makes sense.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question