get CopyName value

edited October 2011 in FastReport 4.0
Hello all,

this code does not work.
procedure Picture1OnBeforePrint(Sender: TfrxComponent);
begin
  Picture1.visible := (<CopyName#> >= 2);
end;

begin
  frxGlobalVariables['CopyName1'] := 1;
  frxGlobalVariables['CopyName2'] := 2;
  frxGlobalVariables['CopyName3'] := 3;   
  frxGlobalVariables['CopyName4'] := 4;     
  frxGlobalVariables['CopyName5'] := 5;     
  frxGlobalVariables['CopyName6'] := 6;     
end.


Has anyone a ideas how makes Picture1.visible in dependence on Copy number?

Regards,
Kostas

Comments

  • gpigpi
    edited 9:50PM
    You can't to use CopyName# for this

    Use TfrxReport.OnPrintPage event

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.