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

Last Page Footer

edited September 2001 in General
In one report I have a dynamic part that consists of several
master detail bands. This is basically a total section of
a specialized printed invoice. I want this total section printed
on the very bottom of the very last page. How do I do that?

It points all right if I put it in one of the Summary
or Group Footer bands BUT it is printed wherever it happened
to be on every other generated report, I want it on the bottom
of the page.

What is generally the right way to print something on the bottom
of the very last page?

Comments

  • edited September 2001
    You can use the summary band and set its PrintPosition property so that it
    prints on the bottom of the page. If the summary band is static height then
    this isn't much of a problem, as the PrintPosition is simply the page height
    minus the summary band height. If the summary band is dynamically
    stretching in height then you can modify its position using this demo's
    approach.
    http://www.digital-metaphors.com/tips/AlignSummaryToBottom.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    Thank you Jim!



    The approach in the example worked!



    Now I have another problem with that same piece of report. I can't keep it together on one page. If there is not enough
    space left on the page where the summary band starts printing, I want the whole band jump on the next page.



    Is there a methodic to keep the summary band together, that can be combined with the example you posted above?
  • edited September 2001
    Yep, the demo was built to break over multiple pages for another customer.
    You are going to need to place a region in the summary band that is the size
    of the summary band and is set to Stretch and KeepTogether. This should
    cause the report engine to start a new page when the summary band region
    can't fit on the current page.

    You can test to make sure ther report controls are in the region by dragging
    the region in the designer. Programatically, you can assign the Region
    property of the controls to set up the relationship that the region is the
    parent of the control.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    Thank you for your help Jim! I did exactly what you said,

    and it looks like it worked, even though I had a sub-band

    on the Summary band.



    Is this a miracle, or the region is smart enough to stretch
    and accommodate the sub-band as well? ;-)

  • edited September 2001
    It is working as designed. The region can contain a subreport and should be
    able to KeepTogether even if there is a stretching subreport inside of it.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    This is awesome! Your product kicks ass! Thank you Jim!

This discussion has been closed.