Page 1 of 1

"file:///" type urls don't work

Posted: Sun May 18, 2008 8:49 pm
by Rael Bauer
Hi,

I have a user who says that "file:///" type hyperlinks don't work for him. "http://" hyperlinks work fine, but for "file:///" type he says that the computer churns but then does nothing.

He's on win2003 and has been experiencing this with simple RichViewActions demo. Any ideas of cause/ how to solve?

Thanks
Rael

Posted: Tue May 20, 2008 5:21 pm
by Sergey Tkachenko
First, check that the hyperlink is really correct. Visible text for the hyperlink may be different from its target.

I can add this code in TrvActionInsertHyperlink.GoToLink in RichViewActions.pas, before calling ShellExecute:

Code: Select all

  if AnsiLowerCase(Copy(URL, 1, 8))='file:///' then
     URL := Copy(URL, 9, Length(URL)-8);
But I cannot reproduce this problem on my WinXP computer.