Importing Hyperkinks in RTF adds drive path

General TRichView support forum. Please post your questions here
Post Reply
whisper1980
Posts: 8
Joined: Sun May 25, 2025 6:41 pm

Importing Hyperkinks in RTF adds drive path

Post by whisper1980 »

I am evaluating your TRichView product and downloaded the trial. When I use your demo Tutorial_2_7_Skia and add a line to save to RTF at the end of the FormCreate method, the Hyperlinks look like this:

Code: Select all

{\field
{\*\fldinst HYPERLINK "First%20jump"}
{\fldrslt \plain \f0\b\ul\fs20\cf4 Like this one.}
}
Then when using your RVEditDemo_Skia to load the above RTF and save again as RTF, the Hyperlinks now have a drive path added to it like this:

Code: Select all

{\field
{\*\fldinst HYPERLINK "C:\\\\Data\\\\First%20jump"}
{\fldrslt \plain \f0\b\ul\fs20\cf4 Like this one.}
}
How can I avoid this? I don't think it should be adding a drive path.

Eric
Sergey Tkachenko
Site Admin
Posts: 17839
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Importing Hyperkinks in RTF adds drive path

Post by Sergey Tkachenko »

Assign RichView.RTFReadProperties.BasePathLinks = False.
whisper1980
Posts: 8
Joined: Sun May 25, 2025 6:41 pm

Re: Importing Hyperkinks in RTF adds drive path

Post by whisper1980 »

Perfect! Thanks for the quick reply Sergey!
Post Reply