Solved

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

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

803 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