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:54PM
    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:54PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.