Line coding

T

TomH

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?
 
M

Marshall Barton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top