Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML and CSS for a complex page 20 63
iframe detection of parent window scale 20 61
Poster Video HTML 5 Scale to fit video 3 38
Bootstrap on PLNKR 3 16
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

863 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

18 Experts available now in Live!

Get 1:1 Help Now