Java apache poi showInPane-短数据类型中的参数

Java apache poi showInPane-短数据类型中的参数,java,excel,apache,apache-poi,Java,Excel,Apache,Apache Poi,我正在使用ApachePOI库制作一个excel文件。 在创建了一个超过32767行的excel文件之后,我无法设置showInPane,因为短数据类型中的toprow参数。 当我将超过32767行作为变量传递时,它会给我一个错误 java.lang.IllegalArgumentException: row index may not be negative at org.apache.poi.ss.util.CellReference.<init>(CellReferen

我正在使用ApachePOI库制作一个excel文件。 在创建了一个超过32767行的excel文件之后,我无法设置showInPane,因为短数据类型中的toprow参数。 当我将超过32767行作为变量传递时,它会给我一个错误

java.lang.IllegalArgumentException: row index may not be negative
    at org.apache.poi.ss.util.CellReference.<init>(CellReference.java:133)
    at org.apache.poi.ss.util.CellReference.<init>(CellReference.java:127)
    at org.apache.poi.ss.util.CellReference.<init>(CellReference.java:119)
    at org.apache.poi.xssf.usermodel.XSSFSheet.showInPane(XSSFSheet.java:2380)

您需要升级到更新版本的Apache POI-Dominik Stadler在中为您修复了此错误


您可能需要2013-07-14或更高版本的夜间版本,或者等待POI 3.10 beta 2

您需要升级到Apache POI的更新版本-Dominik Stadler在中为您修复了此错误


您可能希望从2013-07-14或更高版本开始每晚构建,或者等待POI 3.10 beta 2

看起来像POI中的一个bug,从文件没有那么多行的日子开始。我建议你在POI bug tracker中提出一个bug…看起来像是POI中的bug,从文件没有那么多行的日子开始。我建议你在POI bug跟踪器中提出一个bug…3.10 Beta2没有解决这个问题。我希望这将应用于下一个版本。对不起,这是从夜间构建。确保您在2013-07-14之后有一个夜间构建,并且确保您现在传递的是
int
而不是
short
我使用的是Sheet类,不是XSSFSheet类。现在,它解决了几乎建立版本。非常感谢~3.10 Beta2没有解决问题。我希望这将应用于下一个版本。对不起,这是从夜间构建。确保您在2013-07-14之后有一个夜间构建,并且确保您现在传递的是
int
而不是
short
我使用的是Sheet类,不是XSSFSheet类。现在,它解决了几乎建立版本。非常感谢~
void showInPane(short toprow, short leftcol)
    Sets desktop window pane display area, when the file is first opened in a viewer.
Parameters:
    toprow - the top row to show in desktop window pane
    leftcol - the left column to show in desktop window pane