Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open Excel file in browser, not in excel application

Tags:

html

excel

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

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

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.

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

like image 787
Manoj Avatar asked Dec 13 '11 12:12

Manoj


1 Answers

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/

like image 85
Nagibaba Avatar answered Oct 05 '22 12:10

Nagibaba