0

Hello guys! I'd a problem here. Is there any way that I can download a sheet from an excel file by php? For example,I have this excel file named test.xls,and it have several sheets in it. What i want is to download only a sheet from it. Any suggestion or helps are much appreciated! =)

3
Contributors
3
Replies
5
Views
4 Years
Discussion Span
Last Post by eyeda
6

@eyeda

For example,I have this excel file named test.xls,and it have several sheets in it. What i want is to download only a sheet from it. Any suggestion or helps are much appreciated! =)

You need to download the Pear Package for this to work:

http://pear.php.net/package/Spreadsheet_Excel_Writer/download

This is the code that run with the Pear Package

http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.intro.php

Also you can used this PHPEXCEL:

http://phpexcel.codeplex.com/

Votes + Comments
To Rectify what some retard did to LastMitch
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.