how to display excel sheet in html page

后端 未结 11 1688
天涯浪人
天涯浪人 2020-12-03 21:09

I want to display EXCEL sheet embedded in IE with plain HTML. I have gone through other questions on stackoverflow but could not find any useful one.

Here is my html

相关标签:
11条回答
  • 2020-12-03 21:50

    If you are making a link <a href='file.htm'>link name</a> or place an iframe tag, it will show the excel data on web but you can't make changes to it.

    Every time you make changes in the Excel sheet you have to save again with the same name so it will replace file, and will show the result. The <a> tag file name extension should be .htm

    0 讨论(0)
  • 2020-12-03 21:51

    Depending on if you want it to automatically update or not, you can just save the excel spreadsheet as a PDF then embed the PDF as an object -

    It appears you don't have a PDF plugin for this browser, but you can click here to download the PDF file.

    It's the best way I have found for uploading.

    0 讨论(0)
  • 2020-12-03 21:51

    Maybe you might try the web to send the file with proper Content-Type header and with the header like this:

    Content-Disposition: inline; filename="xxx.xxx"
    

    Here is a discussion about these headers: How to force files to open in browser instead of download (pdf)?

    Or just search on google for content-disposition.

    0 讨论(0)
  • 2020-12-03 21:54

    You can use iPushPull to push live data direct from an Excel session to the web where you can display it in an IFRAME (or using a WordPress plugin, if applicable). The data in the frame will update whenever the data on the sheet updates.

    The iPush(...) in-cell function pushes data from Excel to the web.

    This support page describes how to embed your Excel data in your website.

    Disclaimer - I work for iPushPull.

    0 讨论(0)
  • 2020-12-03 21:57

    Try this it will work...

    <iframe src="Tmp.XLS" width="100%" height="500"></iframe>
    

    But you can not save changes that you have done...It is used only for displaying purpose..

    0 讨论(0)
  • 2020-12-03 22:00

    You can upload it into Google Docs, and embed the Google Spreadsheet as detailed here: http://support.google.com/docs/bin/answer.py?hl=en&answer=55244

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