Solved

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

Posted on 2016-11-17
2
73 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 83

Accepted Solution

by:
Dave Baldwin earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 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