473,378 Members | 1,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Can I read an Excel spreadsheet?

Is it possible to read cells from an Excel spreadsheet, and what is the
code for this?

Many thanks.

Rob.

Oct 27 '06 #1
4 1630
Rik
Rob Coventry wrote:
Is it possible to read cells from an Excel spreadsheet, and what is
the code for this?
Simple versions: if you output them as csv offcourse.

Mor complicated: only on Windows, with OLE compatible COM class:
http://www.php.net/manual/en/class.com.php

If you're not on a Windows server, there have been several tries with
reverse-engineering, none of which really satisfy.
--
Rik Wasmus
Oct 27 '06 #2
"Rob Coventry" <ro*****@yahoo.com.aupíse v diskusním príspevku
news:11*********************@k70g2000cwa.googlegro ups.com...
Is it possible to read cells from an Excel spreadsheet, and what is the
code for this?

Many thanks.
It is possible in Perl, not in Php. Learn and use Perl instead of PHP ;-)

P.S. Please no flamewar...

--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
Oct 27 '06 #3
On Fri, 27 Oct 2006 16:25:49 +0200, "Petr Vileta" <st****@practisoft.czwrote:
>"Rob Coventry" <ro*****@yahoo.com.aupíse v diskusním príspevku
news:11*********************@k70g2000cwa.googlegr oups.com...
>Is it possible to read cells from an Excel spreadsheet, and what is the
code for this?

Many thanks.
It is possible in Perl, not in Php. Learn and use Perl instead of PHP ;-)

P.S. Please no flamewar...
No flames, just a link:
http://www.google.co.uk/search?q=php+excel

The Perl solutions may well be more comprehensive, but I've not tried either.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 27 '06 #4
lu************@hotmail.com says...
Rob Coventry wrote:
Is it possible to read cells from an Excel spreadsheet, and what is
the code for this?

Mor complicated: only on Windows, with OLE compatible COM class:
http://www.php.net/manual/en/class.com.php

If you're not on a Windows server, there have been several tries with
reverse-engineering, none of which really satisfy.
For read (only) as opposed to read/write, I have for some time been using
a class that seems to work perfectly well on Apache/PHP/Linux.

http://sourceforge.net/docman/displa...group_id=99160

Geoff M
Oct 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Roger Twomey | last post by:
I have a form that allows a user to upload a microsoft Excel Spreadsheet. (I am testing with one created in Excel 2000) The spreadsheet is uploaded correctly. It is then supposed to be read...
0
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I...
2
by: Scott M. Lyon | last post by:
I currently am working on a VB.NET application that imports data from an Excel spreadsheet that the customer filled in. I used the following code to use ODBC to read the data from the...
6
by: Syvman | last post by:
Here's what I've got: I'm trying to grab some data out of an Excel spreadsheet and bring it into Access. I'm able to do it, but only if the Excel spreadsheet is not opened by any other users. I...
1
by: garry.oxnard | last post by:
Can anyone help me to solve a problem which involves switching from Access to Excel (then back to Access) programatically please? I have an Excel template which, on open, also opens an Access...
5
by: barbara_dave | last post by:
Hi All, I need to read data from a Excel spreadsheet, but I got the problem when I tried the code below: StringBuilder sbConn = new StringBuilder();...
2
by: wstsoi | last post by:
hi I have to read images from spreadsheet, is it possible to do with php?
0
by: nudrat | last post by:
I have added a reference Microsoft Excel 5.0 Object Library in my project. the code is as follows: Dim myExcel As Excel.Application ' Interface to Excel Dim myWorkBookCollection As...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.