[prev in list] [next in list] [prev in thread] [next in thread]
List: poi-user
Subject: Re: Issues on ContinueRecord when using event API
From: "subhash medhi" <medhi2006 () gmail ! com>
Date: 2007-08-06 4:52:06
Message-ID: 885b42c20708052140s509e22beye670196b6a9bd863 () mail ! gmail ! com
[Download RAW message or body]
Dear friends,
I am trying to use HSSFFormulaEvaluator but facing certain
problems.
Against the underwritten statement I am getting the message that
HSSFFormulaEvaluator cannot be resolved to a type though i have included the
scratchpad jar in the classpath.
HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(hs,wb);
Kindly help and let me know if need to include any more jars. Your help
would be appreciated.
Thanks,
Subhash
On 8/6/07, Dan Xu <fudanxd@gmail.com> wrote:
>
> Hi,
>
> Currently I am using POI HSSF's event API to read excel file. But I found
> there is no code to deal with ContinueRecord and I cannot work around it
> in
> my own code either. So once the excel file contains ContinueRecord, it
> will
> definitely throw out the Exception,
>
> RecordFormatException("Records should handle ContinueRecord internally.
> Should not see this exception") in
> HSSFEventFactory.genericProcessEvents(HSSFRequest
> req, RecordInputStream in).
>
> From the description of this exception, it seems that before that it
> should
> be somewhere that can deal with the ContinueRecord just as in
> RecordFactory.createRecords(InputStream in). But in function
> genericProcessEvents, it does not have such kind of process. Neither do
> other previous functions. So I wonder whether it needs some codes here or
> before to deal with the situation that sid == ContinueRecord.sid.
> Otherwise,
> how do I do in my event api programming to prevent throwing such kind of
> exception.
>
> Thanks!
>
> Dan
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic