且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在CSV文件中创建多个工作表

更新时间:2023-11-30 20:09:28

CSV是一种非常简单的格式,并且没有工作表的概念。
所以,不,不可能直接。
我唯一可以建议的是发送多个csv文件到客户端,可能是一个.zip文件,并让客户端unizp它,并一次导入一个表格到Excel。

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.

如果您需要在浏览器中直接打开,您需要使用xls文件。

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