List Info

Thread: UnknownPropertyException when trying to set HyperLinkURL




UnknownPropertyException when trying to set HyperLinkURL
user name
2006-03-15 18:08:02
I am trying to set the hyperlink for a particular part of
text using the
following code and OpenOffice 1.1:

XText xText = (XText)UnoRuntime.queryInterface(XText.class,
xShape);
XTextCursor xTextCursor = xText.createTextCursor();
XPropertySet propCursor = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
propCursor.setPropertyValue("HyperLinkURL",
"http://www.openoffice.org");

When I try to run it, I get an
"UnknownPropertyException". Does anyone
know what I am doing wrong, or alternately, have a code
example that will
do the right thing?

Thanks,
Ann




------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )