Export data to xlsx

I have searched google about How to export data to xlsx in ionic app, but i have got nothing. Anyone have suggestion?

use open standards like csv. xlsx is only a special format for microsoft office products. And they are not a single file it is more like an archive or container with multiple files (open a xlsx, docx, … with winrar :wink: ).

So use open standards like csv.

1 Like

Thanks for reply.
With CSV, I used some libraries (ngCsv, AlaSQL…), but It cannot export on mobiles. So I find out a way to do it: convert to csv string, then use $cordovaFile write string to myCsv.csv file and store it to android sdcard.
But now, I need really export to xlsx files, How can?

Just been in the same situation and found nothing definitive so, I created my own first approach:

Just started it, in this you I include an example on how to:

-convert json to csv file and store it on device
-convert html data into .xls file


Awesome, a simple example project that works. Thank you !

1 Like

Thank you so much… Awesome project.