Resize Subreport Control Dynamically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have two reports which I'd like to share a single subreport; the subreport
contains some memo text. On one of the reports the subreport control is
narrower than on the other. When opening the report where the subreport is
narrower I'd like to shorten the memo text control so that it fits within the
container's width (otherwise it disappears from view). How can I do this?
I've tried things like "Subreport.Report.txtDetailLine.Width =
Subreport.Width" but no dice.

I hope I'm making myself clear. :)
 
I would attempt something with code in the subreport. Try:

If Me.Parent.Name = "rptNarrow" Then
Me.txtDetailLine.Width = Me.Parent.SubReportA.Width
End If
 
THANKS!!!!

Duane Hookom said:
I would attempt something with code in the subreport. Try:

If Me.Parent.Name = "rptNarrow" Then
Me.txtDetailLine.Width = Me.Parent.SubReportA.Width
End If
 
Back
Top