设置之后,只有真正有超长内容的文本框会自动扩大,其他的还是不会跟着扩大,这样并不美观。如果想要其他文本框也能自动根据所在行中最高的文本框调整高度,应该怎么办?作者: lzslp131477 时间: 2008-7-27 09:50
期待[:34]作者: fxtest 时间: 2008-7-29 19:00
Private Sub 主体_Print(Cancel As Integer, PrintCount As Integer)
Dim CtlDetail As Control
Dim intLineMargin As Integer
intLineMargin = 60
For Each CtlDetail In Me.Section(acDetail).Controls
With CtlDetail
If CtlDetail.Name <> "Memo" Then
Me.Line ((.Left + .Width + intLineMargin), 0)-(.Left + .Width + _
intLineMargin, Me.Height)
End If
End With
Next
With Me
Me.Line (0, 0)-Step(.Width, .Height), 0, B
End With