poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sawant, Ramdas \(IT\)" <Ramdas.Saw...@morganstanley.com>
Subject one question regarding reading cell values
Date Fri, 05 May 2006 13:37:19 GMT
Hi all,

            Can I read value from the cell using some header name
instead of using the actual cell no. 

e.g instead of writing-

                        HSSFCell secondCell = row.getCell((short)1);

Can I write something like

                        HSSFCell secondCell = row.getCell("headername");

 

This similar problem like how we access the columns from the resultset.

 

Incase if there is addition or deletion of  columns in the excel, then
our code should not get affected..

 

Thanks in advance..

 

 

Regards,

Ramdas Sawant

........................................................................

Associate Consultant, Kanbay

Manikchand Ikon, South Wing 18 Dhole Patil Road
Pune  411001
INDIA

........................................................................
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality
or privilege, and use is prohibited.

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message