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

Dynamicly Change band height or Insert blank line

edited September 2002 in General
Using Enterprise 5.55 and D5.

I have a subreport in a summary band.

Depending on row data in the subreport I need to insert a blank line.
Couldn't find reference to blank line insertion so I'm trying to increase
the band height which whould give me the same result.

I'm using the 'BeforeGenerate' of the detail band which is in the subreport
which is in the summary band. Also tried the 'beforePrint'. No matter what
I do I can't change the height of the band.

In the subreport I've changed 'PrintBehavior' to all three settings. I've
changed 'PrintHeight' in the band to both of it's settings. No luck.

BTW, I have the subreport in the summary band because I wanted the subreport
to print on a new page. When the subreport was in the main section along
with otrher subreports I could not get it to print on a new page. Sticking
it in the summary band seemed to be the only way to do this. Not sure if
this is a bug or intended behavior. If it's intended behavior it seems
counter-intuitive to me. Any way I'm almost done with this report If I can
just get the blank line to print where I want it to.

TIA,
Joe

Comments

  • edited September 2002
    If you want to insert some white space, set the BottomOffset property of a
    band or subreport.

    If you would like to show a subreport on a new page, you can use the
    subreport's title band and set that band's NewPage property to true. You
    can also set the Subreport's PrintBehavior property to pbSection. Resize
    the titleband to zero height so that it does take up any space in the
    report. You could also create a group in the subreport and set it to be a
    value that is the master datasets's key record value so that it doesn't
    change. Then set the group to start on a new page.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    The BottomOffset seems to work.

    Why can't i change the band height in the beforeGenerate event?

    Thanks for your help.

    Joe

  • edited September 2002
    You can't change the height of a band if the band is a dynamic height band.
    It will jsut resize itself after you set the height. Stick with the bottom
    offset property.

    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.