Question Vertical Lines in a Report

pturco

New member
Local time
Today, 10:58
Joined
Sep 22, 2008
Messages
8
I have a subreport within a report with vertical lines. My problem is that the vertical lines only extend to the end of the detail section. I need the lines to extend to the end of the subreport even if the details do not go that far.

Here is the code I am using, it was writen by someone else and I cannot figure out how to extend the lines. Anything I try either does not change it, or they disappear, or appear on every other page.

Option Compare Database
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim sngtop As Single, sngleft As Single
Dim sngwidth As Single, sngheight As Single, lngcolor As Long

Me.ScaleMode = 5
sngtop = Me.ScaleTop + 5
sngleft = Me.ScaleLeft + 5
sngwidth = Me.ScaleWidth - 10
sngheight = Me.ScaleHeight + 50
lngcolor = RGB(0, 0, 0)
' Me.Line (sngtop, sngleft)-(sngheight, sngleft), lngcolor
Me.Line (0.7917, 0)-(0.7917, sngheight)
Me.Line (1.5833, 0)-(1.5833, sngheight)
Me.Line (2.1667, 0)-(2.1667, sngheight)
Me.Line (2.75, 0)-(2.75, sngheight)
Me.Line (7.7083, 0)-(7.7083, sngheight)
Me.Line (8.375, 0)-(8.375, sngheight)
Me.Line (8.9583, 0)-(8.9583, sngheight)
Me.Line (9.5833, 0)-(9.5833, sngheight)
Me.Line (10.0417, 0)-(10.0417, sngheight)
Me.Line (10.5, 0)-(10.5, sngheight)
Me.Line (10.9583, 0)-(10.9583, sngheight)
Me.Line (11.75, 0)-(11.75, sngheight)
End Sub

Any help is much appreciated,
Pam :(
 

Users who are viewing this thread

Back
Top Bottom