Tried searching for how to do this. I’d think it’d be sort of common but couldn’t find it while searching…
I’m using aspose cells to allow the user to upload an excel doc. I then need to grab the values from each column from say row 4 to the end of the column.
What’s the cleanest way to do this?
I know I can get the last column and then beginning iterating over my columns:
int lastColumn = cells.getRows().get(0).getLastCell().getColumn();
for(int col=0;col <= lastColumn;col++) {
Column column = cells.getColumns().get(col);
But now I can’t seem to do much with a Column object. I thought they’d be a way on a Column to get the last cell so that you could get a list of Cells to iterate over… something like…
What’s the best way to achieve what I want to do (for each column I want to look at the values in each of the cells from row x to the end of the column - note the column heights could vary… they might not all have the same number of values.)
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.