show label1 caption in frxReport my memo box

edited 10:18AM in FastReport 4.0
hello

when i click on my button in project with this code:
frxReport1.ShowReport;

i can see my form print with my filter.

i insert an memo in frxReport1.DesignReport;

now i want if i use frxReport1.ShowReport; , my memo string in design form for print in fast report print form designer, show label1. caption in my project.

of course i connected my frxReport1 to my adotable database and i can when click print button all data in report form with fast report. but i want filter count in project also show in my memo in print form.

thanks

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:18AM
    you can either pass the value in through a variable, or the ogv event, or the obp event.
    you can also add a delphi form to the code page and you can access the properties of that forms objects but not variables.
  • edited 10:18AM
    hello

    for me please tell me more about

    i'm await...

    thanks
  • gordkgordk St.Catherines On. Canada.
    edited 10:18AM
    read the programmer's manual for how to work from delphi.
  • edited 10:18AM
    please write me sample code or learn me step by step for this subject.

    thanks
  • edited 10:18AM
    hi .. here is a sample:

    procedure TForm1.PrintReport1Click(Sender: TObject);
    var
    Memo1: TfrxMemoView;
    begin
    frxReport1.LoadFromFile('test.fr3');
    Memo1 := frxReport1.FindObject('Memo1') as TfrxMemoView;
    Memo1.Text := Edit1.Text;
    frxReport1.ShowReport;
    end;

    Enjoy it!

Leave a Comment