2012-03-06 75 views
1

我想阅读一个格式化的RTF文件,并加载到FastReport备忘录。我这样做:我可以在FastReport中读取RTF吗?

var 
    ArquivoRTF : string; 
    Conteudo : TStringList; 
begin 
    ArquivoRTF := DiretorioDoExecutavel+'RTFTEMP.RTF'; 
    Conteudo := TStringList.Create; 
    Conteudo.LoadFromFile(ArquivoRTF); 
    Desc := TfrxMemoView.Create(Page); 
    Desc.Name:= 'Desc'+IntToStr(I); 
    Desc.Text := Conteudo.Text; 
    Desc.Height:= 20; 
    Desc.Left:= Left; 
    Desc.Align:= baWidth; 
    Desc.Top:= 1; 

阅读,但不是格式化。如何红色格式化?我使用Delphi 2010和FastReport 4.9来自巴西的感谢。

回答

1

您应该使用TfrxRichView而不是TfrxMemoView来显示Rtf数据。

相关问题