Code: Select all
Sub DrawLines(R As Report, ParamArray xPos())
' Number of twips in one inch.
Const OneInch = 1440
' Maximum height of a section in inches.
Const MaxHeight = 22
' Loop index
Dim i As Integer
' Draw vertical line at xPos(i) inches from left margin. Covers entire section.
For i = LBound(xPos) To UBound(xPos)
R.Line (xPos(i) * OneInch, 0)-(xPos(i) * OneInch, MaxHeight * OneInch)
Next i
End Sub
Thanks in advance for your ideas.
Ken