Private Sub 主体_Format(Cancel As Integer, FormatCount As Integer)
Dim i As Long
i = Len(Text1.Text)
If i <= 48 Then
Text1.TopMargin = 45
End If
End Sub
是这个样子吗?呵呵。都忘记光 了。编的好像不对。没起作用
企业名称是我通过查询里设置条件查询出来的
TopMargin是设置内部边距的吗
还有个办法就是加空格
Private Sub 主体_Format(Cancel As Integer, FormatCount As Integer)
Dim i As Long
i = Len(Text1.Text)
If i <= 48 Then
Text1 = " " & Text1
End If
End Sub