如何使用fastReport的tfrxMemoView作为新的VCL组件?

时间:2015-05-16 09:37:01

标签: components fastreport

我必须弄清楚如何从fastReport创建一个与tfrxMemoView完全相同的组件,除了与数据库相关的所有属性外?

是否有任何解决方案可以从tfrxMemoView创建一个继承的组件,或者是否存在任何类似的组件?

1 个答案:

答案 0 :(得分:0)

请参阅FR开发人员手册“编写自定义报告组件”一章

此外,您可以从TfrxMemoView继承新组件并隐藏一些属性,如frxHideProperties(TfrxView,'DataSetName; BrushStyle; URL');

uses frxDsgnIntf;

TfrxMemoView1 = class(TfrxCustomMemoView)
  published
    property AutoWidth;
    property AllowExpressions;
    property AllowHTMLTags;
    property BrushStyle;
    property CharSpacing;
    property Clipped;
    property Color;
    //property DataField;
    //property DataSet;
    property DataSetName;
    property DisplayFormat;
    property ExpressionDelimiters;
    property FlowTo;
    property Font;
    property Frame;
    property FillType;
    property Fill;
    property GapX;
    property GapY;
    property HAlign;
    property HideZeros;
    property Highlight;
    property LineSpacing;
    property Memo;
    property ParagraphGap;
    property ParentFont;
    property Rotation;
    property RTLReading;
    property Style;
    property SuppressRepeated;
    property Underlines;
    property UseDefaultCharset;
    property WordBreak;
    property WordWrap;
    property Wysiwyg;
    property VAlign;
  end;

initialization

frxObjects.RegisterObject1(TfrxMemoView1, nil, '', '', 0, 2, [ctReport, ctData]);