title: Link to another file
body: <p>I'm generating a word document by using open-xml.</p>
  
  <p>There i show names of image files 
  i.e. 
  c:\config\1.jpg
  c:\config\2.jpg</p>
  
  <p>On-click on those names (cntl+click) those file should be opened. But it doesnt go to the file rather than an anchor to top of the word doc.</p>
  
  <p>I used hyperlink as below</p>
  
  <pre><code>Paragraph paraSummary = body.AppendChild(new Paragraph());
  Run runSummary = paraSummary.AppendChild(new Run());
  runSummary.AppendChild(new Break());
  Hyperlink hl = new Hyperlink(new Run(new Text(item.ToString())))
  {
   DocLocation = rootPath1 + "\\" + item.ToString()
  };
  runSummary.AppendChild(hl);
  
  mainPart.Document.Append(body);
  mainPart.Document.Save();
  </code></pre>
  
  <p>and the xml of generated file is :</p>
  
  <pre><code>-&lt;w:hyperlink w:docLocation="c:\\config\\1.jpg"&gt;-&lt;w:r&gt;&lt;w:t&gt;1.jpg&lt;/w:t&gt;&lt;/w:r&gt;&lt;/w:hyperlink&gt;
  </code></pre>
  
  <p>is there any other solution other than 'Hyperlinks' or anything that i have missed in above code.</p>