RB 7 to 10 ShiftWithParent
Hi,
I have a report created in RB7, in the detail band there is a subreport and
some other components under the subreport. The SubReport is only printed in
the first record then the visible property is set to false. In RB7 we used
ShiftWithParent to cause the other components to shift upward on subsequent
records. Now in RB10 the detail band prints the full height of the detail
band in all records, causing subsequent records to be double height. What is
the correct approach on this?
Thanks
-Jack
I have a report created in RB7, in the detail band there is a subreport and
some other components under the subreport. The SubReport is only printed in
the first record then the visible property is set to false. In RB7 we used
ShiftWithParent to cause the other components to shift upward on subsequent
records. Now in RB10 the detail band prints the full height of the detail
band in all records, causing subsequent records to be double height. What is
the correct approach on this?
Thanks
-Jack
This discussion has been closed.
Comments
The ShiftWithParent property has been deprecated for RB 9 or later. The
Anchors property has now been added to every visual component in
ReportBuilder. Anchoring a component to the bottom will give you the same
effect as the ShiftWithParent property gave in previous versions.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Not sure where I go wrong on this, but anchoring the components to bottom in
the scenario described in my original post, did not give me the same effect.
as ShiftWithParent. In version 7 the detail band would dynamically shrink in
height if the subreport contained in the band is set to visible:=false in
the before print event, while in version 10 it prints the full height as in
design time.
Thanks
-Jack
Yes, this type of behavior has changed. In this case you are correct in
that you will need to use a region to allow the components to shift upward
if the detail band has space to move.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I would expect something like that to be listed in the What's Changed
section of the release notes...