DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41919>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41919 Summary: get maximum number of columns (or last col number) on sheet Product: POI Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: HSSF AssignedTo: poi-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I need to read and analyze spreadsheets whose initial structure is not entirely known a priori. Since I could not find anything in the documentation about how to do this, and the information which is available in a DimensionsRecord at a low level did not seem to be accessible through the usermodel objects, I propose adding the following method to usermodel.HSSFSheet: public int getLastColumnNum() { List records = sheet.getRecords(); DimensionsRecord dim = (DimensionsRecord)records.get(sheet.getDimsLoc()); return dim.getLastCol(); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/