How to Draw a line at Middle of the page :

  • Thread starter Thread starter Irshad Alam
  • Start date Start date
I

Irshad Alam

I want to draw a line at about 3 inch after the details
section starts, its about middle of the page, therefore, I
wrote the code below at Details section format property :

Me.Line (0,0)-(9240,0)

But it draws the line just at the start of details
section. I want the line 3 inch below the details section
starts, I mean to say the top margin of that line in
detail section should be about 3 inch.

Please advise
 
Irshad said:
I want to draw a line at about 3 inch after the details
section starts, its about middle of the page, therefore, I
wrote the code below at Details section format property :

Me.Line (0,0)-(9240,0)

But it draws the line just at the start of details
section. I want the line 3 inch below the details section
starts, I mean to say the top margin of that line in
detail section should be about 3 inch.


The origin of coordinates used in the Line method is the
top, left of the section. I think you want to use

Me.Line (0,0)-(3 * 1440,0)
 
Mr. Marshall

Thanks for your advice.

The code you mentioned draws a 3 inch line only from left
only. But pls. note that my question was to draw a line
JUST AFTER 3 INCH from the margin where the detail section
starts.

Please advise further
 
Irshad said:
The code you mentioned draws a 3 inch line only from left
only. But pls. note that my question was to draw a line
JUST AFTER 3 INCH from the margin where the detail section
starts.

I'm sorry, but I don't follow what you're asking here. Are
you saying you want a 6.4 inch long horizontal line that is
3 inches down from the top of the detail section? If so,
then use:

Me.Line (0,3 * 1440)-(6.4 * 1440,3 * 1440)

Or do you want to draw a 3.4 inch line at the top of the
detail section starting 3 inches from the left margin? If
this is what you want, try this:

Me.Line (3 * 1440,0)-Step(3.4 * 1440,0)
--
Marsh
MVP [MS Access]


 
Back
Top