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.

Comments

  • gpigpi
    edited 6:19AM
    It seems you still have some FR Embarcadero edition units installed. Uinnstall all instances of FR, remove all FR's files and folders (see system and hidden folders too) and then install FR Standart again
  • edited 6:19AM
    gpi wrote: »
    It seems you still have some FR Embarcadero edition units installed. Uinnstall all instances of FR, remove all FR's files and folders (see system and hidden folders too) and then install FR Standart again

    Thanks, the reinstall really solved the problem.
    Thank you.

Leave a Comment