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

Find Height of Summary Band

edited March 2004 in Subreports
What i would like to achieve is

I'm having a subreport2 that shifts relative to another subreport1.
But subreport2 has a Stopposition.

So, what i would like to know if there is a way to find out the size the
summary will have, there is a chart on the summary that has to be resized to
what is available.

Kind Regards

Comments

  • edited March 2004


    The following calculation can be used to determine how much page space it
    left. You can place this code in the Band.BeforePrint event.

    uses
    ppUtils;

    begin
    liAvailableSpace := ppReport1.PrinterSetup.PageDef.mmPrintableHeight -
    ppReport1.Engine.PrintPosRect.Top;

    ldAvailableSpaceInInches := ppFromMMTHousandths(liAvailableSpace,
    utInches, pprtVertical, ppReport1.Printer);
    end;




    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.