poi建立excel文档,如何建立中文名的sheet?

aiolia 2003-04-21 05:28:22
有哪位高人指点一下,先谢了
...全文
106 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wantvictory 2003-05-24
  • 打赏
  • 举报
回复
newman0708(nch)
-------------------------------------------------------------------------
4)set Sheet Name

wb.setSheetName(0, "Matrix");// set the name of the first sheet
解决中文问题
String str1="矩阵";
wb.setSheetName(0,str1,wb.ENCODING_UTF_16);// set the name of the first sheet
----------------------------------------------------------------------
编译通不过
函数原型为:void setSheetName(int sheet, java.lang.String name)
你的参数就不对啊。。。。
newman0708 2003-05-23
  • 打赏
  • 举报
回复
难道如何建立中文名的sheet还没有解决吗?
wantvictory 2003-05-23
  • 打赏
  • 举报
回复
POI,学习中。。。。
关注
newman0708 2003-04-27
  • 打赏
  • 举报
回复
4)set Sheet Name

wb.setSheetName(0, "Matrix");// set the name of the first sheet
解决中文问题
String str1="矩阵";
wb.setSheetName(0,str1,wb.ENCODING_UTF_16);// set the name of the first sheet

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧