Posted 11 May 2022, 12:15 am EST
Hello,
How do I export spreadjs to CSV? using the options (sheet index, encoding, row index, column index, row count, column count, row delimiter, column delimiter) as per the demo.
Forums Home / Spread / SpreadJS
Posted by: pedro.moraes on 11 May 2022, 12:15 am EST
Posted 11 May 2022, 12:15 am EST
Hello,
How do I export spreadjs to CSV? using the options (sheet index, encoding, row index, column index, row count, column count, row delimiter, column delimiter) as per the demo.
Posted 11 May 2022, 4:09 pm EST
Hi Pedro,
You can use the getCSv method to get the text from the range with the specified delimiters. Set the charset and download the csv file.
getCsv method: https://www.grapecity.com/spreadjs/docs/latest/online/SpreadJS~GC.Spread.Sheets.Worksheet~getCsv.html
For example, you can refer to the following sample that I have created for you: https://jscodemine.grapecity.com/share/y5_O5vbeQEOcH4Vy9slnnw/
Import and Export CSV Files: https://www.grapecity.com/spreadjs/docs/latest/online/csvimpexp.html
Please let us know if you need further assistance on this query. We would be happy to help you.
Regards
Ankit