如何使用Java获取和放置Excel的列名称?

发布于 2024-12-03 09:44:11 字数 78 浏览 1 评论 0原文

如何使用Java获取Excel工作表的列名?我正在使用 jexcel 包来读取和写入 Excel 工作表。还有如何更改Excel工作表的列名?

How to get column name of Excel sheets using Java? I am using jexcel package for reading from and writing into excel sheet. And also how to change a column name of an Excel sheet?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦情居士 2024-12-10 09:44:11

您说的是哪个版本的 Java 和 Excel?

对于 Excel 2003 之前的所有 Excel 版本,您可以使用 http://jexcelapi.sourceforge.net/

对于 2007 年,您可以使用 http://poi.apache.org/index.html

我这样做不知道有任何适用于 Excel 2010 的 Java API。对此表示抱歉!

Which version of Java and Excel are you talking about?

For all versions of Excel till Excel 2003 you can use http://jexcelapi.sourceforge.net/.

For 2007, you can use http://poi.apache.org/index.html

I do not know of any Java APIs for Excel 2010. Sorry about that!

心奴独伤 2024-12-10 09:44:11

POI 还支持 Excel 2010。建议使用 XSSF 库,因为 xlsx 文件解析速度往往较慢:

http://poi。 apache.org/spreadsheet/index.html

POI supports Excel 2010 as well. Using the XSSF library is suggested as the xlsx files tend to be slower to parse:

http://poi.apache.org/spreadsheet/index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文