Creating multiple sheets in CSV file

后端 未结 2 1921
南笙
南笙 2020-12-11 16:59

I am using superCSV to write data in csv format in my code. Its working absolutely fine and very efficiently , but now my requirement changed . I need to write multiple shee

相关标签:
2条回答
  • 2020-12-11 17:10

    Take a look at the api here.

    http://supercsv.sourceforge.net/apidocs/index.html

    I'm not familiar SuperCsv please don't beat me up too bad if I'm wrong... Can't you just set CsvPreference to EXCEL

    0 讨论(0)
  • 2020-12-11 17:24

    CSV is a very simple format, and does not have the concept of a "sheet". So, no, it's not possible directly. The only thing that I can suggest is to send multiple csv files to the client, perhaps as a .zip file, and have the client unizp it and import one sheet at a time into Excel.

    If you need it to open directly in the browser, you'll need to go with an xls file.

    0 讨论(0)
提交回复
热议问题