views:

439

answers:

1

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

+4  A: 

You can use CSV format that is readable for MS Excel and OO Calc. 'Tis just an easiest way.

If you use jQuery, you can use CSV Plugin.

silent
+1 for beating me to it!
Dominic Rodger
And what about pdf?
kramer
You can't export to pdf exactly from js. You can send CVS to php-script that can generate pdf - http://www.php.net/pdf
silent