Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Generate hyperlink to file within Onenote

$
0
0

I need to create a onenote-page which contains a number of hyperlinks to files on the disk or perhaps network-share). The generating of the ON-page is no issue anymore, this will work coorectly. Even the list of files on a specific directory is no problem at all.

My issue is generating a working hyperlink: I tried several pieces of code, but every time the same "error" will result in not creating a hyperlink. My current piece of code looks like this:

sb.AppendLine(string.Format(string.Format("<ahref=\"onenote:Project%202.one#base-path={0}\">...</a>",
      Path.GetFullPath(filePaths[x]))));

the output is < a href=\"onenote:Project%202.one#base-path=c:\\temp\\connectorLog.txt\">...< /a >\r\n"
 
the last backslash after "connector.txt" is used for escaping the double quotes, but should not be part of the filename. So the only thing I can see in the ON-page, are three periods in plain text and no hyperlink is created,
 
Can somebody help me a little??

  

Viewing all articles
Browse latest Browse all 2257

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>