Hi Nicole,
Nicole Scholz wrote (15-7-2008 21:16)
I tried to add a hyperlink to a text within a rectangle. Usually a
hyperlink is set on the textproperties with setpropertyvalue and then
the hyperlink for example:
xTextProps~setPropertyValue("HyperLinkURL", “www.google.at”)
Now I would like to add the hyperlink to a shape. I tried it the same
way with the xText within the shape.
xShapeText = Shape~xText xShapeTextCursor =
xShapeText~createTextCursor props = xShapeTextCursor~xPropertySet
props~setPropertyValue("HyperLinkURL", “www.google.at”)
But this does not work. I get the exception that the method is not
found. Can someone give me a hint why I get this error and how I can
get the hyperlink into the shape?
When a shape is selected, you can choose Presentation|Interaction.
The Document as target and the URL you like.
This works in the UI, so I expect that is is possible via the API as well.
Have you tried xRay to examine the methods/properties of the shape?
Kindest regards,
Cor
--
"The Year of 3" -2008- "Het jaar van 3"
Cor Nouws - Arnhem - Netherlands
> marketing contact - http://nl.OpenOffice.org
> Zeker van OpenOffice.org - www.nouenoff.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]