Line coding

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

Guest

Hi
A couple of questions regarding lines coding.
I use this code in the side footer section:

Me.DrawWidth = 1
Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
First question, why do the bottom line in the rectangle disappear? The can
grow is set to yes and instead of Me.ScaleHeight I use 330. Just wonder.
Second question, what is the code for setting color on the lines?
 
TomH said:
A couple of questions regarding lines coding.
I use this code in the side footer section:

Me.DrawWidth = 1
Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
First question, why do the bottom line in the rectangle disappear? The can
grow is set to yes and instead of Me.ScaleHeight I use 330. Just wonder.
Second question, what is the code for setting color on the lines?


Sometimes(?) the bottom line disappears because it is below
the printable area. Just subtract a small amount from the
height of the rectangle.

The color is specified in the argument you left out.

Try a variation of:

Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight-25),vbGreen,B
 
Back
Top