如何在浏览器而非Excel应用程序中打开Excel文件 [英] How to open Excel file in browser, not in excel application

查看:62
本文介绍了如何在浏览器而非Excel应用程序中打开Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望打开Ms-Excel文件仅在浏览器中打开,我已经编写了以下代码

I want open Ms-Excel file to open in browser only, i have written following code

<a href="file.xls">file</a>

但是当我单击该链接时,它始终会弹出一个对话框以供打开和保存,当我打开文件时,该文件是在Ms-excel中打开的,而不是在浏览器中打开的.

but when i'm clicking that link, it always popups a dialog box for open and save, when i open the file opens in Ms-excel not in browser.

有什么方法只能在浏览器中打开excel文件吗??

Is there any way to open excel file in browser only.?

推荐答案

在您的链接 http://view.officeapps.live.com/op/view.aspx?src= 之前添加此标签.完全像这样< a href =" http://view.officeapps.live.com/op/view.aspx?src = file.xls"显示文件</a> . http://officewebviewer.com/

add this slug before your link http://view.officeapps.live.com/op/view.aspx?src=. Exactly like this <a href="http://view.officeapps.live.com/op/view.aspx?src=file.xls">show file</a>. http://officewebviewer.com/

这篇关于如何在浏览器而非Excel应用程序中打开Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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