在快速报告5 VCL中设置脚本填充

时间:2015-01-19 17:11:29

标签: delphi fastreport

是否可以在BeforePrint事件中设置波段填充?我尝试了以下但得到错误"无法转换类型的变体(null)int类型(整数)":

procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
  if <USERS."DELETED"> = 1 then
    MasterData1.Fill.BackColor := cl3dLight; // 'cl3dLight' does not work either.
end;

2 个答案:

答案 0 :(得分:2)

尝试

TfrxBrushFill(MasterData1.Fill).BackColor:= cl3dLight;

答案 1 :(得分:0)

我最后只是添加一个矩形的TfrxShapeView对象并将其调整到乐队。然后我根据需要使其可见或不可见。

我仍然想知道为什么你不能在脚本中调整乐队本身的填充。

相关问题