Linking to local document

Topics: User Forum
Sep 16, 2009 at 7:05 PM

Is there any MAML capability to produce a link that opens a local document file in its associated Windows application?

I ask here at SHFB because this is the truly only place on the Internet where people know how to produce Help files.

 

Coordinator
Sep 16, 2009 at 8:14 PM
Edited Sep 16, 2009 at 8:17 PM

You can use an <externalLink> element with a "file://" URL that tells it what file to open.  Set the <linkTarget> to _blank so that it opens in its own window:

<externalLink>
    <linkText>The Data</linkText>
    <linkUri>file://C:/Docs/Data.xls</linkUri>
    <linkTarget>_blank</linkTarget>
</externalLink>

Support for the linkTarget sub-element is only available if you've applied the Sandcastle Styles patch.

Eric