trichview.com

trichview.support.thirdparty




Re: strange thing with RvHtmlImporter and BasePath property


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/06/2004 22:47:40


Hello,


I'll fix it in the next update of htmlimporter.



The following function must be used instead of  ExtractFilePath on the line

BasePath := ExtractFilePath(BasePath);


  function ExtractPath(const S: string): String;

  var l: Integer;

  begin

    l := Length(S);

    while l > 0 do begin

      if (S[l] in ['\','/']) and (ByteType(S, l)<>mbTrailByte) then

        break;

      dec(l);

    end;

    if l<0 then

      l := 0;

    Result := Copy(S, 1, l);

  end;



> Hello,

>

> I have very strange problem with  BasePath property of RvHtmlImporter

> component.

> Then I am pasting page from IE(clipboard) the RvHtmlImporterImageRequired

> event fires

> and BasePath property return only string like "http://".

>

> The strange thing is that  BasePath property worked fine before,  method

> always returned

> paths like "C:\Documents and Settings\Jon\Local Settings\Temporary

Internet

> Files".

>

> I don't understand where is the problem?

>

> p.s. Then pasting html I am using Paste Special(html) action.

> Regards,

> Jon

>

>





Powered by ABC Amber Outlook Express Converter