The below code was used to "Shade" a column in a report by drawing an extremly wide line. When used in other reports Y12 has been set to 22 (Simply because it is unpratical at this point for a single item to continue for that long, therefore I know the shading will cover the entire detail). However, now that I would like to change this so that it can be used in the footer, it needs to be changed to approx .25 inches, empty space between the group footer and the next group header. That is the problem.
Can anyone explain why the line appears to start to \/ towards the bottom when the length is shortened? Why won't it simply stop flat at the bottom? Any suggestions?
Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
Dim X11 As Single, Y11 As Single
Dim X12 As Single, Y12 As Single
Dim Color1 As Long
' Specify unit of measurement for coordinates on a page...
Me.ScaleMode = 5 ' Specify that measurement occur in inches.
' Set line to print 3.23 inches from the left margin.
X11 = 3.23
X12 = 3.23
' Set line to print from the top of the detail section
' to a maximum height of .25 inches.
Y11 = 0
Y12 = 0.25
Me.DrawWidth = 360
Color1 = 12632256
' Draw the line with the Line method.
Me.Line (X11, Y11)-(X12, Y12), Color1
End Sub
Thank you for any and all help,
PBrown
Can anyone explain why the line appears to start to \/ towards the bottom when the length is shortened? Why won't it simply stop flat at the bottom? Any suggestions?
Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
Dim X11 As Single, Y11 As Single
Dim X12 As Single, Y12 As Single
Dim Color1 As Long
' Specify unit of measurement for coordinates on a page...
Me.ScaleMode = 5 ' Specify that measurement occur in inches.
' Set line to print 3.23 inches from the left margin.
X11 = 3.23
X12 = 3.23
' Set line to print from the top of the detail section
' to a maximum height of .25 inches.
Y11 = 0
Y12 = 0.25
Me.DrawWidth = 360
Color1 = 12632256
' Draw the line with the Line method.
Me.Line (X11, Y11)-(X12, Y12), Color1
End Sub
Thank you for any and all help,
PBrown