<snip>
>>>> Martin Hoeijmakers wrote:
>> <snip>
>>>>> Because I use my program on two systems - one without Excel - I
>>>>> used POI
>>>>> (with Octave 3.2.4). If I use POI now, I get the error message
>>>>>
>>>>> error: [java] java.lang.NoSuchMethodException: getNumWorkSheets
>>>>> error: called from:
>>>>> error:
>>>>> C:\Octave\Octave3.4.3_gcc4.5.2\share\octave\packages\io-1.0.15\oct2xls.m
>>>>>
>>>>> at line 491, column 14
>>>>> error:
>>>>> C:\Octave\Octave3.4.3_gcc4.5.2\share\octave\packages\io-1.0.15\oct2xls.m
>>>>>
>>>>> at line 163, column 17
>>>>>
>>>>> Do you have a solution for this?
:
<snip>
:
>> The proposed fix:
>>
>> In oct2xls, change L.490 from:
>>
>> nr_of_sheets = xls.workbook.getNumWorkSheets ();
>>
>> into the following sequence:
>>
>> try
>> nr_of_sheets = xls.workbook.getNumWorkSheets ();
>> catch
>> nr_of_sheets = xls.workbook.getNumberOfSheets ();
>> end_try_catch
>>
>> Please report back if this works OK for you.
>>
>> Philip
> Hi Philip,
>
> This seems to be OK
>
> Thank you,
> Martin

Thx for reporting.

I'll commit this change to svn.

Philip

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to