P
PeteCresswell
I posted this a few days ago under "Report: Varying Control Positions
Depending On SubReport's Size? " but I'm not getting any nibbles and
am getting desperate. Figuring that maybe it never made it out of
GoogleGroups, I'm posting it again.
Got a report with a subreport.
Subreport has .CanGrow=Yes and .CanShrink=Yes.
In Detail_Format, I'm trying to use .Line to draw an enclosing
rectangle - whose depth will vary depending on how much stuff is in
the subreport.
My problem is that the subreport's .Height always comes back the same:
the size it is when the form is in Design mode. It does not seem to
change as the subreport grows/shrinks in response to containing more
or fewer lines.
Likewise, Section(0).Height seems to remain the same.
e.g.
' --------------------------------------
' Draw the rectangle
1060 With Me
1061 rctMain_Bottom = .Section(0).Height
1069 End With
1990 Me.Line (0, (vPad * 2))-(Me.Width, rctMain_Bottom), RGB(0, 0,
0), B
' --------------------------------------
Should I be doing this in some other event besides Detail_Format?
Does the bit about the subreport's .Height not changing ring true?
Depending On SubReport's Size? " but I'm not getting any nibbles and
am getting desperate. Figuring that maybe it never made it out of
GoogleGroups, I'm posting it again.
Got a report with a subreport.
Subreport has .CanGrow=Yes and .CanShrink=Yes.
In Detail_Format, I'm trying to use .Line to draw an enclosing
rectangle - whose depth will vary depending on how much stuff is in
the subreport.
My problem is that the subreport's .Height always comes back the same:
the size it is when the form is in Design mode. It does not seem to
change as the subreport grows/shrinks in response to containing more
or fewer lines.
Likewise, Section(0).Height seems to remain the same.
e.g.
' --------------------------------------
' Draw the rectangle
1060 With Me
1061 rctMain_Bottom = .Section(0).Height
1069 End With
1990 Me.Line (0, (vPad * 2))-(Me.Width, rctMain_Bottom), RGB(0, 0,
0), B
' --------------------------------------
Should I be doing this in some other event besides Detail_Format?
Does the bit about the subreport's .Height not changing ring true?