Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Compare Database
Option Explicit
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
[COLOR=#4E9A06] ' Draw | |
' | |
'
' ReferenceLine is an invisible line in the Group Header section to pull measurements from[/color]
Dim lngTop As Long, lngLeft As Long, lngRight As Long, lngWidth As Long, lngHeight As Long
lngTop = Me.ReferenceLine.Top
lngLeft = Me.ReferenceLine.Left
lngWidth = Me.ReferenceLine.Width
lngRight = lngLeft + lngWidth
lngHeight = Me.Height
Me.Line (lngLeft, 0)-Step(0, lngHeight)
Me.Line (lngRight, 0)-Step(0, lngHeight)
End Sub
Private Sub GroupFooter1_Print(Cancel As Integer, PrintCount As Integer)
[COLOR=#4E9A06] ' | |
' draw lines |______________________________________|
'
' ReferenceLine is an invisible line in the Group Header section to pull measurements from[/color]
Dim lngTop As Long, lngLeft As Long, lngRight As Long, lngWidth As Long, lngHeight As Long, lngGapBetween
lngTop = 0
lngGapBetween = 100 [COLOR=#4E9A06]'spacing[/color]
lngLeft = Me.ReferenceLine.Left
lngWidth = Me.ReferenceLine.Width
lngRight = lngLeft + lngWidth
lngHeight = Me.Height - lngGapBetween
Me.Line (lngLeft, lngHeight)-Step(lngWidth, 0)
Me.Line (lngLeft, 0)-Step(0, lngHeight)
Me.Line (lngRight, 0)-Step(0, lngHeight)
End Sub
Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
[COLOR=#4E9A06] ' draw lines ______________________________________
' | |
'
' ReferenceLine is an invisible line in the Group Header section to pull measurements from[/color]
Dim lngTop As Long, lngLeft As Long, lngRight As Long, lngWidth As Long, lngHeight As Long
lngTop = Me.ReferenceLine.Top
lngLeft = Me.ReferenceLine.Left
lngWidth = Me.ReferenceLine.Width
lngRight = lngLeft + lngWidth
lngHeight = Me.Height
Me.Line (lngLeft, lngTop)-Step(lngWidth, 0)
Me.Line (lngLeft, lngTop)-Step(0, Me.Height)
Me.Line (lngRight, lngTop)-Step(0, Me.Height)
End Sub
Using the Line method, the more you zoom in, the more impressed you are with the lines ;-)dmhgt3 said:but if you zoom in when previewing the report, you can tell the borders are pieced together