how can i open a excel inside a web browser?

前端 未结 4 570
北恋
北恋 2021-01-28 01:13

I need to open a excel in web browser when click a button.how to do that in asp.net

相关标签:
4条回答
  • 2021-01-28 01:29

    I use Google Docs Viewer for opening a wide variety of files in the browser.

    Example:

    http://docs.google.com/viewer?url=http%3A%2F%2Fyoursite.com%2Fyourexcelsheet.xlsx
    
    0 讨论(0)
  • 2021-01-28 01:30

    you just need to give the url of the excel in the server

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

    Only you can open a excel in server you can do.not in Client

    0 讨论(0)
  • 2021-01-28 01:40

    You can open and control and excel file on the server side with .net, then you can write an html/javascript frontend (or silverlight) for the actions. But you cannot open the ms excel itself as a dom object etc.

    Look into the excel object model for .net.

    0 讨论(0)
  • 2021-01-28 01:49

    You can't control and launch software on the client (browser) computer - why? Security.

    If this was possible, hackers would have taken over all computers long ago...

    Can you please explain exactly what you are trying to do? Instead of asking how to open excel from the browser, if you explain what you need to accomplish, perhaps we can come up with a better idea.

    0 讨论(0)
提交回复
热议问题