I need to find a PHP library that reads/previews Excel files uploaded by a user.
Does anyone know of any PHP Libraries used to parse .xsls files?
Have you tried phpexcel?
Great documentation and open source library.
Related
I was searching and working many hours but I haven't got solution yet.
I need to convert .xls, .xlx , and .txt file into .pdf file. How to do that? I hasn't got PHP API,
I need to use only core PHP on localhost and not use any framework.
Thanks for every advice...
I generally use FPDF to generate to pdf. But I want to generate a xls or csv file. I read somewhere that this can be done using FPDF. I tried changing the extension but it was not working . Is there any way by which I can use FPDF for xls/csv generation or any php tools or plugin which converts fpdf generated pdf file to xls.
Thanks in advance.
I genearally recommend that you use Exel for xls/csv not sure if it can open pdf files, prefarbly I would download a pear file and start learning how to implement it and use its send functions and formats style. Below is a helpful like were you can learn and download the pear file http://pear.php.net/package/File
There are so many excel reader libraries for php with needs zip extension enabled. With out any such library,
1.can we read an excel file with pure php?
2. How much effort it needs?
Thanks /G
http://phpexcel.codeplex.com/
The effort depends on what you want to do :-)
How can an excel file be opened, all cols/rows read in an array etc the same way .csv files can be? Is there any built in libraries/classes for that in php?
I've use the PHP Excel Reader
and here is a Good Write-up From Zend
I need to export a report to Excel file using PHP i.e. on the fly. I am actually getting data from MySQL and presenting it in HTML tables.
I am able to export all this data into Excel file format, except images. I can't point the image source to an absolute URL, because this file also needs to work off-line.
Is there any way I can embed/insert images into this Excel file without using any library i.e. only PHP code or library which doesn't require PEAR/PECL extensions. I am using LAMP stack, so COM is not an option.
I'm not sure what your reasoning is for not using PEAR, but there is a modified version (PHP Excel Creator library) of PEAR Spreadsheet Excel Writer which does not have any dependencies on the rest of PEAR.
I know that the original PEAR version has a method Worksheet::insertBitmap() . You would need to convert the images to bitmap if they aren't already (maybe using GD
in PHP)
If you are on Windows and have decent access to the server you could also try using COM to talk to Excel and generate the file that way.