I've tried inserting an Excel spreadsheet to be read on the web, only read not written to. I've saved the Excel Spreadhseet as a web page and used the following in my code:

<a href="spreadhseetname.html">Click here for Excel Spreadsheet</a>

I can open in with Internet Explorer but when I upload it and try to view it on the web I get nuttin' Any ideas?

Thanks in advance

Dani AI

Generated

Short answer: saving a sheet as an Excel file and linking that for download is the quickest reliable fix (as found), but if the goal is an in-page view there are predictable reasons the Excel "Save as Web Page" output can fail after upload and a few safer alternatives to consider. The Excel HTML export is intended as a published snapshot and often depends on extra assets, browser-specific markup and server-side assumptions — treat the .htm/.html output as brittle unless you control the hosting and paths. (ablebits.com)

Troubleshooting checklist (fast things to check):

  • Confirm you uploaded the HTML file plus the matching support folder exactly (names and relative paths must match).
  • Check file permissions and that the web server serves those files (404s or blocked .js/.css will render a blank page).
  • Verify filenames and casing: Linux web hosts are case-sensitive while Windows is not; a mismatch will break links. (learn.microsoft.com)
  • If you prefer the user to open the data in Excel instead of viewing inline, make sure the server sends correct MIME types for .xls / .xlsx so browsers and clients handle them predictably. ()

Safer modern options (pick one that fits):

  • Embed a hosted workbook (OneDrive/SharePoint / Excel for the web) and use the iframe/embed code those services generate — viewers remain interactive and updates follow the source file. (support.microsoft.com)
  • Publish a Google Sheet and use the provided pubhtml iframe if a live, view-only embed suits you. (kb.wisc.edu)
  • Client-side: parse an uploaded .xlsx in the browser with SheetJS and render a clean HTML table — good for read-only previews without server conversion. (docs.sheetjs.com)

If the spreadsheet must be static HTML on your site, convert it server-side to clean, semantic HTML (CSV → server template, or use libraries like PhpSpreadsheet/SimpleXLSX to generate HTML). Sanitize outputs and keep converter libraries up-to-date (HTML writers have had XSS issues in the past), or convert to CSV/HTML yourself for full control. (phpoffice.github.io)

Example embed patterns (replace IDs/URLs with your file):

<!-- OneDrive / Excel for the web (copy the iframe from OneDrive/Share dialog) -->
<iframe src="https://onedrive.live.com/embed?resid=YOUR_RESID" width="800" height="600"></iframe>

<!-- Google Sheets (publish to web → Embed) -->
<iframe src="https://docs.google.com/spreadsheets/d/e/FILE_ID/pubhtml?gid=0&single=true" width="100%" height="400"></iframe>

Summary: use a direct .xls/.xlsx link when you want the simplest cross-client behavior, or switch to a hosted/embed or server-side/clean-HTML approach when you need inline viewing. The checklist above covers the most common upload/display failures. (ablebits.com)

Recommended Answers

All 5 Replies

Can you not use it in excel format?
Just link to somefile.xls and most people have excel and should be able to view it fine. There is a free viewer available from microsoft if you want to link to that.

When you save as html in Excel it also creates a folder with supporting images and javascript, did you upload that as well ?

Yes I've uploaded the accompanying files.

I've done the .xls mode and that worked, I didn't know it would. Thank you very much!

how can i create excel page bu using html???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.