New Blog Post: Email: Multi-Service
New Blog Post: TLS Version and Indy

NewPageThreshold for subreports

for Groups is NewPageThreshold available. I think this would also a great benefit for Subreports.
Or is there another functionality to mimic this functionality with subreports?



  • Hi Josef,

    Thanks for the suggestion. It should be possible to get the effect you are after by creating a group around the subreport. Groups and Subreports are meant to coexist.

    If the above is not possible, in code, try toggling the Subreport.KeepTogether property based on the print position of its summary band. For instance:
    procedure TForm2.ppSummaryBand1AfterPrint(Sender: TObject);
    //PrintPosRect is measured in microns
    ppSubreport1.KeepTogether := ppReport1.Engine.PrintPosRect.Top > 100000;

    Best Regards,

    Nico Cizik
    Digital Metaphors
  • Hi Nico,
    this works, but is not handy having many subreports.

    Again, I would ask for a new subreport property "NewPageThreshold".

    Thank you,
Sign In or Register to comment.