poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdhanara <rdhan...@ford.com>
Subject Re: sheet.removeMergedRegion throwing Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
Date Wed, 15 May 2019 12:17:36 GMT
But if you notice clearly

int totalMergedRegions=sheet.getNumMergedRegions();

  for (int i = 0; i < totalMergedRegions; i++){ 
                           sheet.removeMergedRegion(i); 
        } 

totalMergedRegions will not reduce hence array wont get smaller .

Any other suggestions please let me know .



Thanks...!



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message