Apache OpenOffice (AOO) Bugzilla – Issue 22194
Insertion of XAutoTextElement fails when selection contains table
Last modified: 2013-02-24 21:07:39 UTC
I have been using OpenOffice 1.0.3 for my self-defined mailmerge facility, which contains functionality for copying arbitrary blocks of text. This works as follows: XTextCursor selection = getText().createTextCursorByRange(beginTag); selection.gotoRange(endTag, true); xate = xatg.insertNewByName("NAE", "New AutoTextEntry", selection); xate.applyTo(endTag); With OpenOffice 1.1 a RuntimeException is raised while executing 'insertNewByName': com.sun.star.uno.RuntimeException: at java.lang.reflect.Constructor.newInstance(Native Method) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readThrowable (Unmarshal.java:315) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readAny (Unmarshal.java:157) at com.sun.star.lib.uno.protocols.urp.Unmarshal.readObject (Unmarshal.java(Compiled Code)) at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java(Compiled Code)) at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java(Inlined Compiled Code)) at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java(Compiled Code)) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.in voke(java_remote_bridge.java(Compiled Code)) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.ru n(java_remote_bridge.java:173)
Unfinished version of 22195
closing