&所述; A HREF>标签打开excel文件 [英] <a href> tag to open excel file

查看:2090
本文介绍了&所述; A HREF>标签打开excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用Visual Studio 2010,并希望有我的网页,在新窗口中打开一个简单的Excel工作表这是一个本地驱动器上的一个链接。

I am currently using Visual Studio 2010 and wanted to have a link on my page that opened in a new window a simple excel sheet that is on a local drive.

我用一个简单的标签来打开此文件。

I have used a simple tag to open this file.

  <a href="S:/BettyTest.xlsx" target="_blank" title="Excel Test">Excel Book Test</a>

此打开文件的要求,但它不打开这个到一个新的窗口。我目前正在使用IE8。当点击该链接,给我的提示打开或保存工作簿,当我选择打开,这打开了网页。

This opens the file as requested but it doesn't open this to a new window. I am currently using IE8. When clicking the link, I get the prompt to either open or save the workbook and when I select open, this opens over the web page.

推荐答案

您的href需要是不同的。

Your href needs to be different

像这样

文件:///小号:/BettyTest.xlsx

file:///S:/BettyTest.xlsx

这篇关于&所述; A HREF&GT;标签打开excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆