Article ID: 170838
Article Last Modified on 1/20/2007
Field/Expression: EmployeeID (Or Employee ID in Microsoft Access 2.0)
Sort Order: Ascending
Group Header: Yes
Name: Notes
ControlSource: Notes
CanGrow: Yes
CanShrink: Yes
Left: 0.2 in
Top: 0.166
Width: 4.6042 in
Height: 0.166 in
CanGrow: Yes
CanShrink: Yes
Height: 0.5 in.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim X1 As Single, Y1 As Single
Dim X2 As Single, Y2 As Single
Dim Color As Long
' Specify unit of measurement for coordinates on a page...
Me.ScaleMode = 5 ' Specify that measurement occur in inches.
' Set line to print 5 inches from the left margin.
X1 = 5
X2 = 5
' Set line to print from the top of the detail section
' to a maximum height of 22 inches.
Y1 = 0
Y2 = 22
Me.DrawWidth = 8 ' Width of the line (in pixels). Note: Some printers do not accept odd numbers.
Color = RGB(0, 0, 0) ' Use black line color.
' Draw the line with the Line method.
Me.Line (X1, Y1)-(X2, Y2), Color
End Sub
124642 How to shrink and grow a rectangle in a report
Keywords: kbcode kbhowto KB170838