当前位置: 代码迷 >> J2EE >> JAVA POI 设置EXCEL分页的有关问题
  详细解决方案

JAVA POI 设置EXCEL分页的有关问题

热度:677   发布时间:2016-04-19 22:48:14.0
JAVA POI 设置EXCEL分页的问题
想要将一个SHEET设置成分页显示视图,就是带分页线那种。并要调整分页线的位置。
请问如何进行设置呢。
------解决方案--------------------
org.apache.poi.xssf.usermodel.XSSFSheet

 void setRowBreak(int row) 
  Sets a page break at the indicated row Breaks occur above the specified row and left of the specified column inclusive.

 void setColumnBreak(int column) 
          Sets a page break at the indicated column.

楼主,可以试试上面2方法,一个行分页符,一个列分页符。
  相关解决方案