Dynamic height of a report
Hello
In my report (label) I have eight fields under each other and more than one
report (label) on a A4 paper. These eight fields are not always filled with
data, most of the time only two or three fields are filled. The rest of the
fields are then empty. But they take some space on the label. The question
is: How can I dynamic change the height of the report (label) so that the
space of the empty fields is removed from the report.
For example:
Normaly the report is 10 cm height but 5 fields are not filled with data and
these fields can be skipped. The resulting height of the report can be 6 cm.
The question is: Is this possible, and when it is possible how can I do
this.
In my report (label) I have eight fields under each other and more than one
report (label) on a A4 paper. These eight fields are not always filled with
data, most of the time only two or three fields are filled. The rest of the
fields are then empty. But they take some space on the label. The question
is: How can I dynamic change the height of the report (label) so that the
space of the empty fields is removed from the report.
For example:
Normaly the report is 10 cm height but 5 fields are not filled with data and
these fields can be skipped. The resulting height of the report can be 6 cm.
The question is: Is this possible, and when it is possible how can I do
this.
This discussion has been closed.
Comments
One option is to place each one of your fields inside a region. Then for
each region set the ShiftRelativeTo property to the region that lies just
above. Finally inside the DetailBand.BeforePrint, check each field value
before they print and if it is null or blank, toggle the visibility of that
specific region. This will keep all the regions bunched together.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This works fine for a GroupHeaderBand of the report. The height of that band
is reduced when the region is not visible. Now I will use it also for the
header of the report. In that case the height of the header is not reduced
when the region is not visible.
The question is: Is this possible in the header of the report?
Regards
Hanjo Willems
iSOFT Nederland b.v.
It should be if the header band's PrintHeight property is set to phDynamic.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com