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

General TRichView support forum. Please post your questions here
Post Reply
Rael Bauer
Posts: 36
Joined: Tue Aug 21, 2007 4:47 am

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

Post 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
Sergey Tkachenko
Site Admin
Posts: 17267
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply