USING THE LINE METHOD

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All,

I have the following piece of code in the Detail_Print section of a report.

Line Step(Me.Text126.Left, Me.Text126.Top)-Step(Me.Text126.Width,
lngRetT), vbRed, B

Line Step(Me.Text127.Left, Me.Text127.Top)-Step(Me.Text127.Width,
lngRetT), vbRed, B

Line Step(Me.Text283.Left, Me.Text283.Top)-Step(Me.Text283.Width,
lngRetT), vbRed, BHi

I am trying to draw three boxes on my report. If I comment two of the line
method calls and leave one then it displays perfectly in each case but for
some reason when I leave all three lines of code in the first rectangle is
the only one drawn on the screen.

Can anyone help me please to get all three boxes drawn on the report at once?

Thanks a lot in advance,

Stewart Hayles
 
Stew said:
I have the following piece of code in the Detail_Print section of a report.

Line Step(Me.Text126.Left, Me.Text126.Top)-Step(Me.Text126.Width,
lngRetT), vbRed, B

Line Step(Me.Text127.Left, Me.Text127.Top)-Step(Me.Text127.Width,
lngRetT), vbRed, B

Line Step(Me.Text283.Left, Me.Text283.Top)-Step(Me.Text283.Width,
lngRetT), vbRed, BHi


If you want separate rectangles, don't use Step with the
first set of coordinates.

Line (Me.Text126.Left, Me.Text126.Top) - Step( . . .
 
Right thats great, thanks Marshall.

Marshall Barton said:
If you want separate rectangles, don't use Step with the
first set of coordinates.

Line (Me.Text126.Left, Me.Text126.Top) - Step( . . .
 
Back
Top