views:

65

answers:

1

Hi all

Is there any simple way to generate an simple excel file using JavaScript?

Best Regards,

A: 

It's going to be very difficult to generate an Excel file, but a CSV file will be easy to build:

field1,field2,field3
value1,value2,value3
value1,value2,value3

generate it in JavaScript, and send it to the user as a download using Downloadify:

Downloadify is a tiny JavaScript + Flash library that enables the generation and saving of files on the fly, in the browser, without server interaction.

Pekka