Access to single report objects in composite reports

Jo3Jo3
edited 3:48AM 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 3:48AM
    You can access report's objects while another report template will not be loaded
  • Jo3Jo3
    edited 3:48AM
    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 3:48AM
    TfrxMemoView(frxReport1.FindObject('Memo1')).Text := 'test';

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.