help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XLSWrite


From: Ian Journeaux
Subject: XLSWrite
Date: Tue, 12 Oct 2010 21:59:44 -0500

Ok making progress but getting the XLS interface to work in Octave is not
the most obvious thing in the world.

Finally figured out how to get JExcelAPI installed. I followed the steps at


http://forums.sun.com/thread.jspa?threadID=5222024 

This seems to allow writing to a pre existing xls file but if the file
doesn't exist, I get some error messages

octave-3.2.4.exe:2> xlswrite("c:/test2.xls", a)
ncols =  256
Creating file c:/test2.xls
Supported interfaces:  Excel (COM) OK. warning: split is obsolete and will
be removed from a future version of Octave Use strsplit instead
Java/Apache (POI) OK. (& OOXML OK)   Java/JExcelAPI (JXL) OK.
error: com_invoke: property/method invocation on the COM object failed with
error `0x80020009'
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\packages\io-1.0.11\oct2xls.m
at line 290, column 3
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\packages\io-1.0.11\oct2xls.m
at line 86, column 17
Saving file c:/test2.xls ...
error:
C:\Octave\3.2.4_gcc-4.4.0\share\octave\packages\io-1.0.11\xlswrite.m at line
160, column 6

Even with the errors, the xls file gets created. A second call to xlswrite
with the same file name doesn't produce an error.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]