Masterdata OnBeforePrint script
Hi all!
I have a simple report, (5.5.11) with a PageHeader, and a MasterData band.
Depending on the displayed data, the Masterdata should look different, one TfrxLineView object should be visible or not.
I have a simple script for this:
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
if trim(<frxDBDataset1."tabla1_11">) = '' then begin
line1.visible:=false;
end else begin
line1.visible:=true;
end;
end;
The line should be visible, if the data is not empty.
In the designer, it works perfectly, however, in runtime (preview), it looks like the script does not run (the line is always visible).
Any ideas, what can be wrong? The "tabla1_11" data is checked, it is really empty.
Thank you.
I have a simple report, (5.5.11) with a PageHeader, and a MasterData band.
Depending on the displayed data, the Masterdata should look different, one TfrxLineView object should be visible or not.
I have a simple script for this:
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
if trim(<frxDBDataset1."tabla1_11">) = '' then begin
line1.visible:=false;
end else begin
line1.visible:=true;
end;
end;
The line should be visible, if the data is not empty.
In the designer, it works perfectly, however, in runtime (preview), it looks like the script does not run (the line is always visible).
Any ideas, what can be wrong? The "tabla1_11" data is checked, it is really empty.
Thank you.
Comments
Thanks, the reinstall really solved the problem.
Thank you.