So, given this code:
public void processRecord(Record record)
{
switch (record.getSid())
{
case NumberRecord.sid :
NumberRecord numrec = (NumberRecord) record;
System.out.println(
"Cell found with value "
+ numrec.getValue()
+ " at row "
+ numrec.getRow()
+ " and column "
+ numrec.getColumn());
}
} //END processRecord
A date formatted cell value should be printed out to
stdout? I'm working off the example in the
\src\org\apache\poi\hssf\usermodel\examples package of
how to use the Event API.
What I currently get from this code doesn't include
cells formatted as Dates.
--- "Tandon, Rishi (Institutional Securities
Management)" <[EMAIL PROTECTED]> wrote:
> Hi Dave,
>
> The date values are stored as numeric. You can use
> "isCellDateFormatted"
> fn. of HSSFDateUtil class to check if the cell
> represents a date field.
>
> HTH,
> Rishi
>
> -----Original Message-----
> From: David Holtzhouser
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 24, 2004 9:48 PM
> To: [EMAIL PROTECTED]
> Subject: How to get cell value defined as Date using
> Event API
>
> I'm using the Event API to read an Excel sheet, but
> am
> having trouble figuring out which subclass of Record
> to use in order to catch a cell value formatted as a
> Date. Can someone please clue me in...
>
> Thanks,
>
> Dave
>
>
>
> _______________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download
> now.
> http://messenger.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
--------------------------------------------------------
>
> NOTICE: If received in error, please destroy and
> notify sender. Sender does not waive
> confidentiality or privilege, and use is prohibited.
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]