trichview.com

trichview.support




Re: Using HTML Importer


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/01/2003 18:54:32


procedure LoadHtmlFromFile(const FileName: String; rvhtml: TRvHtmlImporter);

var Stream: TFileStream;

    s: String;

begin

  Stream := TFileStream.Create(FileName, fmOpenRead);

  try

    SetLength(s, Stream.Size);

    Stream.ReadBuffer(PChar(s)^, Stream.Size);

  finally

    Stream.Free;

  end;

  rvhtml.LoadHtml(s);

end;



> I notice that the HTML Importer does not have a LoadFromFile method.  Is

> the best way to load from a file to use a FileStream and then the

> LoadHTML method?

>

> Todd

>





Powered by ABC Amber Outlook Express Converter