Marking Memo's Visible / Invisible at runtime
Hi
I have declared a variable in fasts reports and am tring to use it to make a memo visible / invisible @ runtime using the code below -
however everytime I try and run the script in the designer i get Pagefooter1 error in expression expected.
procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
MemoOurRefTitle.Visible := <UseOurRef>;
end;
can someone pint out what I have done wrong
thanks
I have declared a variable in fasts reports and am tring to use it to make a memo visible / invisible @ runtime using the code below -
however everytime I try and run the script in the designer i get Pagefooter1 error in expression expected.
procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
MemoOurRefTitle.Visible := <UseOurRef>;
end;
can someone pint out what I have done wrong
thanks
Comments
note the obp event of the page only fires once at the start of the designpage being processed not for each page produced.
What exactly is it that you are trying to do?
when/where is the variable given a value, if the value comes from outside the report you will get exceeptions if you try to preview from ide design mode.
better place to hide a memo is in the obp event of the memo.