Access to single report objects in composite reports

Jo3Jo3
edited 12:11AM in FastReport 4.0
How can I access single report objects loaded by

frxReport1->LoadFromFile(file1);
frxReport1->PrepareReport(true);

frxReport1->LoadFromFile(file2);
frxReport1->PrepareReport(false);

----

In FR 2.5 I used

TfrReport* singlereport= new TfrReport(this);
singlereport->LoadFromFile(asFile);
singlereport->OnGetValue=MyGetValue;
singlereport->OnBeginBand=MyBeginBand;
frCompositeReport1->Reports->Add(singlereport);

I had full access to singlereport.
How can I do that in FR 4 and higher?

Comments

  • gpigpi
    edited 12:11AM
    You can access report's objects while another report template will not be loaded
  • Jo3Jo3
    edited 12:11AM
    Thanks for your reply. Can you give me a small example?

    frxReport1->LoadFromFile(file1);
    frxReport1->PrepareReport(true);
    frxReport1->LoadFromFile(file2);
    frxReport1->PrepareReport(false);
    frxReport1->LoadFromFile(file3);
    frxReport1->PrepareReport(false);
    frxReport1->LoadFromFile(file2);
    frxReport1->PrepareReport(false);

    How can I access the objects e.g. loaded from file3?
  • gpigpi
    edited 12:11AM
    TfrxMemoView(frxReport1.FindObject('Memo1')).Text := 'test';

Leave a Comment