This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Creating Hyperlinks to Local Files in LabVIEW Reports

Updated Aug 22, 2023

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.