This works for RTF, but if you try and append an RVF file, it automatically clears beforehand as you can see below.
Should the "Clear" in this routine be removed to make it consistent with the RTF import?
function TCustomRVData.LoadRVFFromStream(Stream: TStream; var Color: TColor;
Background: TRVBackground; Layout: TRVLayoutInfo
{$IFNDEF RVDONOTUSESTYLETEMPLATES}
; ReadStyleTemplates: TRVStyleTemplateCollection
{$ENDIF}):Boolean;
begin
Clear;
Result := InsertRVFFromStream(Stream,0, Color, Background, Layout, True
{$IFNDEF RVDONOTUSESTYLETEMPLATES}, ReadStyleTemplates{$ENDIF});
end;
TRichViewEdit - Appending a File
-
- Site Admin
- Posts: 17571
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: