|
以下是报表中自动画线的代码:
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 <> "明细" 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
Set CtlDetail = Nothing
End Sub
但出来的效果就正如图片所见一样:横线粗细不统一,且粗横线的出现不规则,请教问题出在哪里?谢谢! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|