Solved

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

Posted on 2016-11-17
2
25 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
2 Comments
 
LVL 82

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hide IE  and Firefox toolbar 5 51
Hand when hover boostrap carrousel 6 32
Tag input html 4 40
lastpass auto fill login form 5 25
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now