Results 1 to 3 of 3
Thread: help in reading file.
- 10-20-2008, 10:47 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 2
- Rep Power
- 0
help in reading file.
Hi.
Here's my problem.
I want to read excel file. The size is 50 by 50.
Now the problem is i want to select a portion from the excel table.
How I want to select the first 10 row and 10 columns and put it in vector
[a b c d e f g h i j] => first row
[a b c d e f g h i j] => second row
[a b c d e f g h i j] => third row
.
.
.
[a b c d e f g h i j] => tenth row
thanks in advance
- 10-21-2008, 06:52 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
How did you read the first row. Show your attempt on that first.
- 10-21-2008, 03:17 PM #3
Member
- Join Date
- Jul 2008
- Posts
- 35
- Rep Power
- 0
You can use Jakarta POI HSSF API to read or write any MS format excel sheet. See the code snippet below-
To get a row- HSSFRow excelrow = sheet.getRow(0);
To get a cell: HSSFCell cell = excelrow.getCell((short)1); etc.New to Java/PHP/Javascript development?
For free help go to- www.techcubetalk.com
Similar Threads
-
Help reading file
By fritz1474 in forum New To JavaReplies: 4Last Post: 09-17-2008, 03:28 AM -
reading csv file help
By fritz1474 in forum New To JavaReplies: 5Last Post: 09-04-2008, 08:41 PM -
Reading a file
By mew in forum New To JavaReplies: 2Last Post: 12-30-2007, 12:23 PM -
Reading a file for use
By peachyco in forum New To JavaReplies: 2Last Post: 11-27-2007, 03:49 AM -
Reading from a file
By leebee in forum New To JavaReplies: 1Last Post: 07-23-2007, 12:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks