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
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
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