Hi Cor,

Cor Nouws wrote:
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.
The problem, I think, is not the shape object itself, but the text *within* a shape, where each line/paragraph of text should be marked-up with an individual hyperlink.

E.g. a rectangle containing a list of services, where each listed service should hyperlink to its documentation.

It is this application for which she seems to look for a solution (she was able to add hyperlinks to "regular" text, i.e. text outside of shapes and wishes to do the same for texts within a shape).

---rony



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

Reply via email to