Article ID: 151543
Article Last Modified on 1/19/2007
Private Sub Report_Open(Cancel as Integer)
DoCmd.Maximize
End Sub
Private Sub Report_Close()
DoCmd.Restore
End Sub
Private Sub Report_Page()
If Me.Page <> 1 then
Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical line.
' 1 * 1440 represents 1 inch.
' Draws line at Left Margin.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
' Draws line at 1 inch.
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
' Draws line at 2 in.
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
' Draws line at 3 in.
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)
End If
' The 14400 is an arbitrary number to increase the line to the max
' of a section.
End Sub
Private Sub Detail_Print(Cancel as Integer, PrintCount as Integer)
Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical line
' 1 * 1440 represents 1 inch.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)
' The 14400 is an arbitrary number to increase the line
' to the max of a section.
End Sub
Keywords: kbprb kbusage KB151543