Hi Ann,

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?

As far as I know it isn't possible to set a hyperlink for a text inside a shape. This doesn't seem to work via UI so it is unlikely that it would work via API :-)

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to