RTF File Syntax for a Hyperlink

Updated Nov 20, 2023

Issue Details

I have created a custom license agreement in RTF file format and added into the LabVIEW exe installer. The license file contains some hyperlink. When we run the installer, it displays full link path along with hyperlinked lines.

Is there any way to display only hyperlinked lines?

Solution

You need to check RTF syntax for a hyperlink that set in RTF file. For RTF file, the syntax for hyperlink is different compare to other type of files.

You can edit the hyperlink in the file by referring to this:
{\field{\*\fldinst HYPERLINK "URL"}{\fldrslt Text to display}}

For example, you want to have NI hyperlink, you can edit the syntax for NI hyperlink in RTF file as follow:

{\field{\*\fldinst HYPERLINK "https://www.ni.com/en-us.html"}{\fldrslt NI}}