How to composite a frReport and a frPrintGrid

Hi,

I want to print in the same page 2 reports:
- a frReport and
- a frPrintGrid.

I composite this reports but and d'ont get it in the same page.

Any help please or any clue for print in the same page !!!

This is my code
   //Preparing the composite report
    Report := frCompositeReport1;
    frCompositeReport1.DoublePass := True;
    frCompositeReport1.Reports.Clear;

    //Adding the first report --> frReport
    frReport1.LoadFromFile('Information.frf');
    frCompositeReport1.Reports.Add(frReport1);

    //Adding the second report --> frPrintGrid
    frPrintGrid1.DBgrid := SomeDbGrid;
    frPrintGrid1.BuildReport;
    frCompositeReport1.Reports.Add(frPrintGrid1.report);

    Report.Preview := formPreview.frPreview1;
  if Report.PrepareReport then
  begin
    Report.ShowPreparedReport;
    formPreview.ShowModal;
  end;
S.Barco

Comments

  • edited 7:58AM
    Finally I have found it!!.

    frPrintGrid1 have two properties to load a report before and after print the grid.
    (ReportBefore and AfterBefore)

    I think, that part of my ignorance is that there are not a exist a updated manual, then I must try and try and try different properties and methods to know how it work.

    Please, Gentlemen of FR when are going to update the manual?

    S.Barco

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.