Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Help me somebody, please

edited October 2003 in General
I can't solve the following problem:

In my report exists Summary band, but in some cases i have:

page1
detail1
detail2
......
detail7 (for example number)
page2
summary (alone)

i need :

page1
detail1
detail2
......
detail6
page2
detail7
summary

In standart Quick Report any band have property LinkBand for solving this
problem, but how can i solve one in ReportBuilder?

Comments

  • edited October 2003
    Hi Sergey,

    Try using the TppDetailBand.PrintCount to control how many detail records
    are printed per page.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Thanks, so if i have >1 pages in my report i need define Printcount for
    each of them and calculate PrintCount value for lastpage?

    May be you can give me sample algorithm for solving problem? Certainly
    somebody solved problem.

  • edited October 2003
    Hi Sergey,

    You could use the Report.OnStartPage event to check what page the report is
    on, then perhaps using a case statement define how many detail records you
    would like on each page. Something like the following...

    procedure TForm.ppReport1StartPage(Sender: TObject);
    begin
    case ppReport1.AbsolutePageNo of

    1: ppDetailBand1.PrintCount := 3;
    2: ppDetailBand1.PrintCount := 4;
    3: ppDetailBand1.PrintCount := 5;
    4: ppDetailBand1.PrintCount := 6;
    5: ppDetailBand1.PrintCount := 7;
    6: ppDetailBand1.PrintCount := 8;
    end;

    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.