Creating Hyperlinks to Local Files in LabVIEW Reports

Updated Sep 23, 2019

Reported In

Software

  • LabVIEW Base

Issue Details

I am creating a report in LabVIEW and I would like to have a hyperlink that opens a file on the local hard drive. I can create a link to a webpage, but what is the URL syntax for a file on the local machine?

Solution

The URL of a file on the local system is specified in the following format:

file:///filepath/filename

Here, filepath is the full path to the location of your file (e.g. C:/temp/myfolder/) and filename is the name of the file (e.g. mydoc.txt). For example, the URL for a file called mydoc.txt located in the temp folder on the C: drive would be:

file:///C:/temp/mydoc.txt
 

Additional Information

If you are using the Report Generation Toolkit with LabVIEW, this URL is wired to the input of the Append Hypertext Link Anchor to Report.vi.