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

NewPageThreshold for subreports

Hi,
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?

Regards,
Josef

Comments

  • 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);
    begin
    //PrintPosRect is measured in microns
    ppSubreport1.KeepTogether := ppReport1.Engine.PrintPosRect.Top > 100000;

    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,
    this works, but is not handy having many subreports.

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

    Thank you,
    Josef
Sign In or Register to comment.