After adding a TextBox with ShapeType.RoundRectangle, I need to append hyperlink to the whole thing, not just the text inside. Word uses the href attribute in the roundrect tag to do this (I'm using wordml format). If there is any way to set this parameter?
And one more feature that doesn't quite work correctly with application links. When I insert a link as follows:
- Code: Select all
AppendHyperlink("myapp://offline/main? Base=STR;n=30482","some text", HyperlinkType.WebLink)
it goes to the next block in xml file:
- Code: Select all
<w:instrText>HYPERLINK \l "http://myapp://offline/main?base=STR;n=30482"</w:instrText>
Which makes it stop working properly. If you set a similar link via Word, the following section will be added:
- Code: Select all
<w:hlink w:dest="myapp://offline/main? Base=STR;n=30482">
<w:r wsp:rsidR="00E9246B">
<w:rPr>
<w:rStyle w:val="a3"/>
</w:rPr>
<w:t>some text</w:t>
</w:r>
</w:hlink>
Is it possible to repeat this behavior?
Thanks in advance