Stretching vertical lines in more then one subreport problem
Hello all,
I have a simple report using only a detailband with in the detailband there
are 2 subreports with parentwidth set to false.
In the two subreports I use vertical lines with StretchWithParent set to
true;
The problem is when in (for example) Subreport 1 are 8 records and in
subreport2 are 3 records the vertical lines in subreport2 are only
stretched to these 3 records........
Both subreports has as PrintBehaviour pbChild.
Is there a way to set the height of subreport2 to the height of subreport1
and vice versa (depending which has the most records) so that all my
vertical lines will fill the report to the bottom....
How to solve this problem ?
Kind regards,
Peter.
I have a simple report using only a detailband with in the detailband there
are 2 subreports with parentwidth set to false.
In the two subreports I use vertical lines with StretchWithParent set to
true;
The problem is when in (for example) Subreport 1 are 8 records and in
subreport2 are 3 records the vertical lines in subreport2 are only
stretched to these 3 records........
Both subreports has as PrintBehaviour pbChild.
Is there a way to set the height of subreport2 to the height of subreport1
and vice versa (depending which has the most records) so that all my
vertical lines will fill the report to the bottom....
How to solve this problem ?
Kind regards,
Peter.
This discussion has been closed.
Comments
One option would be to place the lines outside the subreport(s) in the main
report's detail band. This way they will stretch to the size of the largest
subreport regardless how large any other dynamic height components become.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the answer.
In my case the subreports has more then one field ..... in Subreport1 there
are 6 fields to seperate and in Subreport2 there are 4 fields to seperate
with vertical lines
Any other options left how to achieve this ?
Kind regards
Peter.
Do you perhaps want to add horizontal lines to the bottom of the second
subreport? When you say "vertical" lines, I assumed you wanted to add lines
running along side each subreport from the top to the bottom.
It is possible to manually add drawcommands to the bottom of a report using
the following technique. See the example below on how this can be done.
http://www.digital-metaphors.com/tips/FillPageWithLines.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks again for the responce.
My SubReport1 is in the same Detailband as SubReport2 together with some
other TppDbText objects with vertical lines
In SubReport1 are also 6 TppDbText with vertical lines
In SubReport2 are also 4 TppDbText with vertical lines
The problem is that SubReport1 and SubReport2 produces not always the same
amount of records.
So lets say Subreport1 has 8 records and SubReport2 has 3 records then the
vertical lines inside SubReport2 draw the lines only untill the 3 records.
But also other way around when SubReport1 has 2 records and Subreport2 has 9
records then SubReport1 only draws the vertical lines inside SubReport1
untill 2 records.
I don't want to draw any lines surrounding the Subreports.
Is there a possibility teo have Subreport1 and SubReport2 to have the same
Height so the vertical lines inside will have the same vertical length ?
Kind regards
Peter
Unfortunately there is not way to force a child subreport to "grow" to the
same size as another subreport. This is why, you will either need to move
the lines outside the subreports into the main report or perhaps manually
add drawline commands to the page (sized to the correct height) after the
subreports have generated. Although the example I sent shows how to add
horizontal lines, you can use the same technique to add vertical lines to a
page in your report anywhere you need.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com