Script: Change position in script

edited November 2013 in FastReport 4.0
Hello,

im trying to change a Memo position (Left property to be specific) with this code:
procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
  Memo7.left := Memo8.left;     
end;

But it wouldnt work.

Any idea why?

thank you.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:43AM
    " Memo7.left := Memo8.lef;" that should produce an error
    you want Memo7.left := Memo8.left;
    if your memos are in a band use the band obp event.
  • edited 8:43AM
    gordk wrote: »
    " Memo7.left := Memo8.lef;" that should produce an error
    you want Memo7.left := Memo8.left;
    if your memos are in a band use the band obp event.

    Yes sorry its "Left"
    but it dosnt work!
  • gordkgordk St.Catherines On. Canada.
    edited 8:43AM
    works fine for me.
    attach a sample of your fr3 file here.

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.