aspose file tools*
The moose likes Other Open Source Projects and the fly likes POI 3.6 XSSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "POI 3.6 XSSF" Watch "POI 3.6 XSSF" New topic
Author

POI 3.6 XSSF

R Dom
Greenhorn

Joined: Sep 08, 2010
Posts: 19
Can anyone tell me how can i read the xlsx workbook by using row by column method?

How can i find total number of columns and rows in the excel sheet using xssf.


Cheers,
RD
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
Start here: http://poi.apache.org/spreadsheet/quick-guide.html#Iterator


Ping & DNS - updated with new look and Ping home screen widget
R Dom
Greenhorn

Joined: Sep 08, 2010
Posts: 19
Thanks mate. I was looking for Java 1.5 for each loop to simplify the things.
But I think we still cant access a particular cell identified by its row number and column number?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
Sure you can: Sheet.getRow(int).getCell(int)
R Dom
Greenhorn

Joined: Sep 08, 2010
Posts: 19
i want something like sheet.get(row number , column number) ... not cell number.
Also can we find out number of columns in excel sheet?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
There's no such thing as a "cell number" - the parameter to getCell *is* the column number. I don't see a difference between chaining two method calls with one parameter each, and one method call with two parameters. If for some reason you want that you can always write your own convenience method.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: POI 3.6 XSSF
 
Similar Threads
Re:How to get Column count using XSSF POI
How to identify the Microsoft office version + POI
Converting Old POI Reading .xls Files to POI 3.7 Issues
Conditional Formatting in POI
Read a .xls,.xlsx file format using XSSF