|
在報表的“列印頁前”事件中輸入下面內容。Private Sub Report_Page()
Dim rpt As Report, lngColor As Long
Dim I As Integer
Set rpt = Reports!當前報表
rpt.ScaleMode =20
lngColor = RGB(255, 0, 0)
rpt.Line (2.503, 2.5)-(4.735, 6.588), lngColor, B
rpt.Line (7.354, 2.5)-(9.074, 6.588), lngColor, B
rpt.Line (10.317, 2.5)-(12.037, 6.588), lngColor, B
rpt.Line (13.81, 2.5)-(15.952, 6.588), lngColor, B
rpt.Line (19.123, 2.5)-(19.123, 6.588), lngColor
For I = 1 To 20
rpt.Line (0.4, 2.5 + (I - 1) * 0.584)-(19.123, 2.5 + I * 0.584), lngColor, B
Next I
End Sub |
|