Page Border

L

LJG

I picked up on this code some time ago and wonder if anyone could explain
the code?

Private Sub Report_Page()
Me.DrawWidth = 8 ' line thickness
Me.Line (0, 0)-Step(Me.Width, 10000), , B ' can anybody explain this
line in particular?
End Sub

The problem I am having is getting it to look tidy on an A4 page (21cm
x20cm) as when I setup the page I keep getting a message that the page is
wider than the printable area.

TIA
Les
 
D

Duane Hookom

The code draws a box on each page of your report. the top left corner of the
box is (0, 0). The box width is the width of the report (Me.Width) and the
height is 10000 twips. The "B" represents "Box". Remove the "B" and you will
get a diagonal line from the top left corner to someplace near the bottom
right.
 

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