【问题标题】:Can I read a RTF in FastReport?我可以在 FastReport 中读取 RTF 吗?
【发布时间】:2012-03-06 21:50:51
【问题描述】:

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

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 感谢来自巴西。

【问题讨论】:

    标签: delphi report fastreport


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-22
      • 2011-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-28
      相关资源
      最近更新 更多