Dynamicly Change band height or Insert blank line
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
Why can't i change the band height in the beforeGenerate event?
Thanks for your help.
Joe
It will jsut resize itself after you set the height. Stick with the bottom
offset property.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com