On Fri, 8 Feb 2008, Georgios Samaritakis wrote:
> When trying to use an Excel file as template to create a new Excel I get
> the following Exception:
>
> Exception in thread "main" java.lang.RuntimeException: Coding Error:
> This method should never be called. This ptg should be converted
>         at
> org.apache.poi.hssf.record.formula.RefNVPtg.writeBytes(RefNVPtg.java:50)
>         at org.apache.poi.hssf.record.DVRecord.serialize(DVRecord.java:467)

DVRecord support is fairly new, so it's quite possible something is
missing. Looking at org/apache/poi/hssf/record/SharedFormulaRecord,
there's some code in there to tweak things like RefNVPtg into alternate
Ptg entries. I'm guessing we may need to call something similar from
DVRecord too

Any chance you could upload the problem file to bugzilla? That way we'll
have something to test against

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to