poi excel 获取列名

来源:互联网 发布:巴克内尔大学 知乎 编辑:程序博客网 时间:2024/05/22 15:53

原文转自:http://www.tqcto.com/article/recommend/135.html


使用poi操作excel,有的时候需要获取列名,比如要将写入公式sum(A1,Z1) 
所以,这个时候 需要获取列名。这就用到了下边的转换函数 
CellReference.convertNumToColString(int columnIndex) 

columnIndex 是HSSFCell对象的属性 
cell.getColumnIndex();

原文转自:编程技术

1 0
原创粉丝点击