[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Display an excel spreadsheet on a web page

Posted on 2006-11-09
3
Medium Priority
?
401 Views
Last Modified: 2011-10-03
Hi, I've been researching this but haven't gotten a lot of solutions in PHP. I would like to know how to display an excel spreadsheet on a web page, just display it. The users don't need to change information, just view it. There are several documents that are posted around the department, and I would like to place them on the Intranet for consulation purposes. The web page was created using PHP and MySQL. It resides on a Linux box running Fedora 5 and Apache. Any ideas will be appreciated. Thanks!
0
Comment
Question by:horalia
3 Comments
 
LVL 16

Assisted Solution

by:HackneyCab
HackneyCab earned 1000 total points
ID: 17911127
Other than using Excel to save the document as an HTML file,

http://office.microsoft.com/en-us/help/HP052561501033.aspx

I don't fancy your chances.

Possibly there exists an ActiveX control that acts as an Excel viewer, and possibly that ActiveX control could be embedded in a web page. But if such a thing exists, I'm betting it would either be very expensive, totally flaky, or both. Microsoft were never keen on people writing third-party apps for their data formats, so support tends to be a bit patchy for non-basic features.

If it's purely tables of numbers you'd want to share, you may be able to export Excel documents as a text-based format, such as CSV, and then write a PHP script that parses the data to produce HTML tables. But graphs would mean more work still.
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 1000 total points
ID: 17912781
If you want .xls files to display you can use http://chicago.sourceforge.net/xlhtml/ to convert and display xls-files as HTML. Its not a php-solution but gives good quality. Else you can try http://sourceforge.net/projects/phpexcelreader
0
 

Author Comment

by:horalia
ID: 17999525
I will divide the points between both answers, I haven't had a chance to look at either, but I hate leaving questions opened for a long time.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question