PhilipNienhuis wrote:
> 
> Benjamin Lindner wrote:
>> Philip Nienhuis wrote:
>>> Subject says /almost/ all.
>>>
>>> I've added some scripts to the IO package for writing ODS spreadsheet
>>> files using the java package and ODF toolkit. (Preliminary support using
>>> jOpenDocument (also java-based) is also included but yet only of limited
>>> use.)
>>> Reading ODS was already possible.
>>>
>>> As it stands it works fairly reliably but the underlying java stuff may
>>> be a bit fragile on Windows (see other posting). On Linux I didn't hit 
>>> any problems yet.
>>>
> 
> 
> As an aside, has anybody really tried the xls/ods scripts? I'd really 
> appreciate wider use & testing.... & suggestions for improvement.
> 

Hello all,

I've tried to call odswrite and was wondering if anyone could give me some
insight as to why it won't seem to work for me. 

When I run an .m file that calls odswrite, Octave readouts that it is
creating the file and then returns the following errors immediately
thereafter: 

Supported interfaces: warning: split is obsolete and will be removed from a
fut
ure version of Octave; please use strsplit instead
 Java/ODFtoolkit (OTK) OK.  Java/jOpenDocument (JOD) OK. 
>>>error: Currently ods2oct can only read reliably from .ods files
error: called from:
error:   /home/charles/octave/io-1.0.13/odsopen.m at line 135, column 3
error:   /home/charles/octave/io-1.0.13/odswrite.m at line 98, column 6
error:   /home/charles/Desktop/M-files/(my_file_name).m at line 42, column 1

Why is it saying that ods2oct can only read .ods files? I don't think the
warning about split is relevant, though it might be.  

I believe I have everything I need in the right place, but maybe I don't.
I've listed further information below to tell you about my setup. Any ideas?

Best,
   Charles


Additional info: 

I'm running Ubuntu 10.04 on an amd x86-64 Lenovo Thinkcentre, I've got
Octave 3.2.4, I've got the jOpenDocument, odfdom and xercesImpl .jar files
added to the javaclasspath from my 3.2.4 octaverc file,  and I get the
following info from 'java -version' and 'javac -version' commands in my
terminal and 'pkg list' in Octave: 

java -version:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-4ubuntu2)
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)

javac -version:
javac 1.6.0_18


pkg list:
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io *|  1.0.13 | /home/charles/octave/io-1.0.13
        java *|   1.2.7 | /home/charles/octave/java-1.2.7


 
-- 
View this message in context: 
http://old.nabble.com/ODS-%28OpenOffice.org-Calc%29-write-support-added-to-IO-pkg-tp27200499p30082443.html
Sent from the octave-dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to