Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppRichText

edited July 2001 in General
Hi


Using Report Builder 5.5x on Win2k


I am trying to use the LoadFromFile method of TppRichText at run time, but
keep getting an access violation.

eg: ppRTBody.LoadFromFile('H:\Data\CZ\Data\sysReports\roy1.rtf');


Does anyone have any examples on how to achieve the successful loading of
RTF at run time please?


Thanks in advance


Roy

Comments

  • edited July 2001
    I thought I had done this before, but must have had trouble too. On
    looking at my code, I have a memory table and a TppdbRichText, then
    set the field as follows:

    try
    sl := TStringList.Create;
    try
    sl.LoadFromFile('FileName.rtf');
    FieldByName('StandardText').AsString := sl.Text;
    finally
    sl.Free;
    end;
    except
    end;

    HTH, Martin Clarke.



    On Tue, 17 Jul 2001 15:20:11 -0500, "Roy Jones"
This discussion has been closed.