[英]How can I export data from an array to an Excel spreadsheet?
Sorry if tutorials for this already exist, but the only help I can find is much more advanced than for what I'm trying to accomplish. 抱歉,如果已经存在用于此目的的教程,但是我能找到的唯一帮助比我要完成的帮助要先进得多。
I have a 100 element array of integers that I want to export into a spreadsheet. 我有一个100元素的整数数组,我想导出到电子表格中。 Array[0] goes to A1, Array[2] goes to A2, etc. Array [0]转到A1,Array [2]转到A2,依此类推。
I've downloaded JExcelAPI, but I can't follow the tutorials because the tool is for pretty advanced tasks. 我已经下载了JExcelAPI,但是由于该工具用于执行高级任务,因此无法遵循这些教程。
try Apache POI... http://poi.apache.org/ i believe this best API for creating microsoft office documents.. (Except MS Visio because you cannot create visio files with this API) 尝试Apache POI ... http://poi.apache.org/我相信这是创建Microsoft Office文档的最佳API。(MS Visio除外,因为您无法使用此API创建visio文件)
try this.... 尝试这个....
If you don't want to use OpenXML or jexcel API, which is not as complicated as you are talking about it, consider using a simple .csv file. 如果您不想使用OpenXML或jexcel API(虽然没有那么复杂),请考虑使用简单的.csv文件。 .csv are easily opened by Excel. .csv可以通过Excel轻松打开。
So what you would need is to write your integers to a file like this: 1;2;23;;4;5;5;1; 因此,您需要将整数写入这样的文件:1; 2; 23 ;; 4; 5; 5; 1; and when it is opened in Excel, you'll get exactly what you need. 当它在Excel中打开时,您将获得所需的确切信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.