日期:2014-05-18  浏览次数:21042 次

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方法,一个行分页符,一个列分页符。