Hi,
this is quite simple, just set the property HyperLinkURL additionally:
xTextRanget.setString(test);
XPropertySet xProp =
(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xTextRanget);
xProp.setPropertyValue("HyperLinkURL", "http://www.gmail.com");
See also com.sun.star.style.CharacterProperties.
HTH, Steffen
Madhan Ponnusamy wrote:
Hi,
I need to assign a url to a string and then the string should be shown in
the text document......for example if i set a string in the way given below
String test
xTextRanget.setString(test);
the String test should be linked to url say www.gmail.com...this is what i
need can any one help me...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]