View Single Post
 
Old 09-30-2009, 04:01 AM
Meep Meep is offline Windows Vista Office 2003
Novice
 
Join Date: Sep 2009
Posts: 2
Meep is on a distinguished road
Default Hyperlink to file within package

Is it possible to have a hyperlink to a file within the docx package?

What I'm trying:
document.xml:
<w:hyperlink r:id="rId4" w:history="1">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink" />
</w:rPr>
<w:t>link</w:t>
</w:r>
</w:hyperlink>

document.xml.rels:
<Relationship Id="rId4"
Type="http://schemas.openxmlformats.org/of...hips/hyperlink"
Target="media/image.jpeg" />

image.jpeg is copied into the media folder.

This does not work. I get an error when trying to open the word document. It works for external targets.

Do someone know if this should be possible, and if so, how?
Reply With Quote