composite report

hi,

i'm using C++Builder and i'd like to use a composite report... but i didn't find anything showing how to do this in runtime. here's my code (it doesn't work ;) ):
frReport1->LoadFromFile(ExtractFilePath(Application->ExeName)+"Report1.frf");
frReport2->LoadFromFile(ExtractFilePath(Application->ExeName)+"Report2.frf");
frCompositeReport1->Reports->Add(frReport1);
frCompositeReport1->Reports->Add(frReport2);
frCompositeReport1->ShowReport();

thanks for all help

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:54PM
    makes ure to set composite to 2pass.
    regards
    gord
  • edited 8:54PM
    thanks a lot, now it works perfectly ;) .
    added this before frCompositeReport1->PrepareReport():
    frCompositeReport1->DoublePass=true;
    

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.