S
sduraybito
Hi,
I can successfully turn resizing off and on in the RTF2 sample database
by removing and reinserting the resizing code:
Private Sub Detail1_Format(Cancel As Integer, FormatCount As Integer)
Dim Height As Integer
Height = Me.RTFcontrol.Object.RTFheight
If Height > 0 Then
If Height < 32000 Then
Me.RTFcontrol.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFcontrol.Height +
Me.RTFcontrol.Top
If Me.RTFcontrol.Object.RTFheight > 0 Then
If Me.RTFcontrol.Object.RTFheight < 32000 Then
Me.RTFcontrol.Height = Me.RTFcontrol.Object.RTFheight
End If
End If
End Sub
However, I cannot get this code to resize in a subreport in my
application. Would there be a reason this code doesn't work in a
subreport?
Thanks,
Peter
I can successfully turn resizing off and on in the RTF2 sample database
by removing and reinserting the resizing code:
Private Sub Detail1_Format(Cancel As Integer, FormatCount As Integer)
Dim Height As Integer
Height = Me.RTFcontrol.Object.RTFheight
If Height > 0 Then
If Height < 32000 Then
Me.RTFcontrol.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFcontrol.Height +
Me.RTFcontrol.Top
If Me.RTFcontrol.Object.RTFheight > 0 Then
If Me.RTFcontrol.Object.RTFheight < 32000 Then
Me.RTFcontrol.Height = Me.RTFcontrol.Object.RTFheight
End If
End If
End Sub
However, I cannot get this code to resize in a subreport in my
application. Would there be a reason this code doesn't work in a
subreport?
Thanks,
Peter