i saving additional information in RTF files with the OnSaveRTFExtra event.
I save my footer with following code:
Code: Select all
Procedure TForm.MainRichViewEditSaveRTFExtra(Sender: TCustomRichView; Area: TRVRTFSaveArea; Obj: TObject; Index1, Index2: Integer; InStyleSheet: Boolean; var RTFCode: string);
Var
strFooter : String;
begin
FooterRichViewEdit.SelectAll;
strFooter:=FooterRichViewEdit.GetSelTextW;
FooterRichViewEdit.Deselect;
case Area of
rv_rtfs_Doc : RTFCode:='{\footer\pard\plain\posxc '+strFooter+'\par}';
rv_rtfs_TextStyle : ; // Here ???
end;
end;
The footer becomes in "MS Word" displayed to example in "Arial 12" instead "Tahoma 7".
Is that difficult?
Regards
Crowbar