Add lines and boxes to a report with VBA

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

I want to add a line and a box to a report from VBA.

How do I do that? (What are the VBA-statements to do so..)

Ian
 
You might want to consider using the Line method of the report. For instance
the following code will draw a rectangle around the detail section. This
code will not account for growth of the detail section based on Can Grow =
Yes.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.Line (0, 0)-Step(Me.Width, Me.Detail.Height), , B
End Sub
 
Back
Top