You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/03/21 16:18:08 UTC
DO NOT REPLY [Bug 41919] New: - get maximum number of columns (or last col number) on sheet
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: gwghome@comcast.net
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: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/