使用Java中的jexcelapi将数据写入Excel文件

时间:2021-04-08 10:00:01

I am a beginner in Java I have created an Excel file and write to that file by using jxl API.

我是Java的初学者我创建了一个Excel文件,并使用jxl API写入该文件。

But the file is taking 14kB but in VC++ it will create with 2KB I am not getting what is the reason, shall I have to use another way to do the coding? Plz help me solve the problem.

但该文件占用14kB,但在VC ++中它将创建2KB我不知道是什么原因,我是否必须使用其他方式进行编码? Plz帮我解决问题。

Thanks.

2 个解决方案

#1


You sound like you are worrying about something that is not important. Is the size of the file restricted in some way? 14k is still pretty tiny compared to many other common files.

你听起来像是在担心一些不重要的东西。文件的大小是否受到某种限制?与许多其他常见文件相比,14k仍然非常小。

That visual C++ creates a smaller files is not surprising given it and Excel are Microsoft products. Jxl is a small open source project made by one person, Andy Khan.

视觉C ++创建一个较小的文件并不奇怪,因为它和Excel是微软的产品。 Jxl是一个由一个人Andy Khan制作的小型开源项目。

#2


What happens if you open the 14kb file in Excel and save it without making any changes? Does it still remain 14kb in size?

如果您在Excel中打开14kb文件并保存而不进行任何更改会发生什么?它仍然是14kb大小?

JExcel FAQ says that the large size of JExcel output could be due to the fact that JExcel does not perform any optimizations on the Excel files.

JExcel FAQ表示,JExcel输出的大小可能是由于JExcel不对Excel文件执行任何优化。

#1


You sound like you are worrying about something that is not important. Is the size of the file restricted in some way? 14k is still pretty tiny compared to many other common files.

你听起来像是在担心一些不重要的东西。文件的大小是否受到某种限制?与许多其他常见文件相比,14k仍然非常小。

That visual C++ creates a smaller files is not surprising given it and Excel are Microsoft products. Jxl is a small open source project made by one person, Andy Khan.

视觉C ++创建一个较小的文件并不奇怪,因为它和Excel是微软的产品。 Jxl是一个由一个人Andy Khan制作的小型开源项目。

#2


What happens if you open the 14kb file in Excel and save it without making any changes? Does it still remain 14kb in size?

如果您在Excel中打开14kb文件并保存而不进行任何更改会发生什么?它仍然是14kb大小?

JExcel FAQ says that the large size of JExcel output could be due to the fact that JExcel does not perform any optimizations on the Excel files.

JExcel FAQ表示,JExcel输出的大小可能是由于JExcel不对Excel文件执行任何优化。