kool_samule Posted November 10, 2009 Share Posted November 10, 2009 Hi Chaps, I have a HTML table, and need to export the contents, with formatting to MS Excel. Does anyone know of a simple way to do this? Quote Link to comment Share on other sites More sharing options...
dgoosens Posted November 10, 2009 Share Posted November 10, 2009 http://www.codeplex.com/PHPExcel is exactly what you are looking for... I would not say it is "easy" though... but it allows you to do what you want in Excel with PHP... and it is really well documented... Quote Link to comment Share on other sites More sharing options...
kool_samule Posted November 10, 2009 Author Share Posted November 10, 2009 Thanks for the link . . .I've come across this before but don't have a clue how to incorporate the classes (or know how they work) into my existing web app.....? Quote Link to comment Share on other sites More sharing options...
dgoosens Posted November 10, 2009 Share Posted November 10, 2009 well... as I said, the code is rather well documented: http://phpexcel.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=10718#DownloadId=90450 Otherwise, it should be possible to "convert" your HTML table into an Excel table just by changing the header to Content-Type: application/vnd.ms-excel Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted November 10, 2009 Share Posted November 10, 2009 well... as I said, the code is rather well documented: http://phpexcel.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=10718#DownloadId=90450 Not to mention there's plenty of scripts in the Tests directory, showing how to instantiate a workbook, populate and format cells, and write out the file Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.