java - apache poi showInPane - parameter in short data type -


i making excel file using apache poi library. after creating excel file more 32767 rows, can't set showinpane because of toprow parameter in short data type. when pass more 32767 row variable, gives me error.

java.lang.illegalargumentexception: row index may not negative     @ org.apache.poi.ss.util.cellreference.<init>(cellreference.java:133)     @ org.apache.poi.ss.util.cellreference.<init>(cellreference.java:127)     @ org.apache.poi.ss.util.cellreference.<init>(cellreference.java:119)     @ org.apache.poi.xssf.usermodel.xssfsheet.showinpane(xssfsheet.java:2380) 

is there way can set toprow overriding short data type maximum value?

showinpane apache javadoc

void showinpane(short toprow, short leftcol)     sets desktop window pane display area, when file first opened in viewer. parameters:     toprow - top row show in desktop window pane     leftcol - left column show in desktop window pane 

http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/sheet.html

you need upgrade newer version of apache poi - dominik stadler fixed bug in r1502749!

you'll either want nightly build 2013-07-14 or later, or wait poi 3.10 beta 2


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -