Hello,
I am using the following code to generate vertical lines for my report but im having a slight overhang.
Any ideas to fix this as circled below. I have a horizontal line placed at the very bottom of the detail section and i cant move it any further down.
I am using the following code to generate vertical lines for my report but im having a slight overhang.
Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim ctrl As Control
Dim intLineMargin As Integer
' This is the spacing between the right edge of the
' control and the Vertical Seperation Line
intLineMargin = 0
For Each ctrl In Me.Section(acDetail).Controls
With ctrl
If ctrl.Tag = "ItemDescription" Then
Me.Line (0, 0)-(0, 0 + .Height + 150)
Me.Line ((.Left + .Width), 0)-(.Left + .Width + intLineMargin, .Height + 150)
End If
If ctrl.Tag = "DocumentDetails" Then
Me.Line ((.Left + .Width), 0)-(.Left + .Width + intLineMargin, .Height + 150)
End If
End With
Next
Set ctrl = Nothing
End Sub
Any ideas to fix this as circled below. I have a horizontal line placed at the very bottom of the detail section and i cant move it any further down.