Page 1 of 1

Importing Hyperkinks in RTF adds drive path

Posted: Sun May 25, 2025 6:56 pm
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

Re: Importing Hyperkinks in RTF adds drive path

Posted: Sun May 25, 2025 8:04 pm
by Sergey Tkachenko
Assign RichView.RTFReadProperties.BasePathLinks = False.

Re: Importing Hyperkinks in RTF adds drive path

Posted: Sun May 25, 2025 8:52 pm
by whisper1980
Perfect! Thanks for the quick reply Sergey!