Hi Stephan,
I already tried that. Even than it is not working.. :-) . It is throwing
same error.
Thanks,
Dinesh
Stephan Bergmann wrote:
Dinesh Varadharajan wrote:
Hi,
I am using jars available with OO 1.9.109. I am using OOoBean to load
and save the model. Its working file when I am saving it in calc8
format. But when I want to save it in old calc
format (calc_StarOffice_XML_Calc), it is throwing
com.sun.star.task.ErrorCodeIOException.
My code is try {
//aBean.storeToURL("file:///c:/test.sxc",
null);
PropertyValue[] props = new PropertyValue[1];
props[0] = new PropertyValue();
props[0].Name = "FilterName";
props[0].Value =
"calc_StarOffice_XML_Calc"; // if the filter is calc8 its working fine.
aBean.getDocument().storeAsURL("file://c:/test.sxc", props);
That URL should probably read
"file:///c:/test.sxc"
instead.
} catch (Throwable aExc) {
System.err.println("storeToFile failed: "
+ aExc);
aExc.printStackTrace(System.err);
}
The detailed stacktrace is as follows:
com.sun.star.task.ErrorCodeIOException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readExceptionValue(Unmarshal.java:464)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readAnyValue(Unmarshal.java:400)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readValue(Unmarshal.java:208)
at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java:190)
at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:312)
at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:624)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:185)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:170)
Thanks,
Dinesh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]