Report Border

C

Con Giacomini

I am having trouble creating a dark border around my report. Here is the
code I'm using:

Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
Me.DrawWidth = 20

I'm sure that I'm not using DrawWidth properly. The border is drawn, but
only about a 1 pt line width, regardless of the with specified in the code.

Any help would be appreciated.
 
C

Cinzia

Con Giacomini said:
I am having trouble creating a dark border around my report. Here is the
code I'm using:

Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
Me.DrawWidth = 20

I'm sure that I'm not using DrawWidth properly. The border is drawn, but
only about a 1 pt line width, regardless of the with specified in the code.

Any help would be appreciated.
Hi Con Giacomini,
you have to set the DrawWidth before drawing the line!
Me.DrawWidth = 20
Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
Bye
 
M

Marshall Barton

Con said:
I am having trouble creating a dark border around my report. Here is the
code I'm using:

Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), , B
Me.DrawWidth = 20

I'm sure that I'm not using DrawWidth properly. The border is drawn, but
only about a 1 pt line width, regardless of the with specified in the code.


You have to set the DrawWidth before drawing the rectangle.
 
C

Con Giacomini

Here is the new code per your advice:

Me.DrawWidth = 2
Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), B

With DrawWidth in the first line of code, the report now has a diagonal line
(with the correct width) running through the report from the top left corner
to the bottom right corner. Any other suggestions?
 
M

Marshall Barton

Con said:
Here is the new code per your advice:

Me.DrawWidth = 2
Me.Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight), B


You forgot a comma before the 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

Similar Threads


Top