border style alignment

I

iccsi

I have a report like following columns and use boder style solid.

Code Description


The problem is when the description has 2 or more lines then the code
still has one line of border.


The first and second column do not have same border height.


Are there any workaround for this?

Your information is great appreciated,
 
M

Marshall Barton

iccsi said:
I have a report like following columns and use boder style solid.

Code Description


The problem is when the description has 2 or more lines then the code
still has one line of border.


The first and second column do not have same border height.


To do what you want, you need to avoid the Border property
and use code in section's Print event to draw the vertical
lines:

Me.Line _

(Me.Code.Left,0)-Step(Me.Code.Width,Me.Section(0).Height),,B
Me.Line _

(Me.Description.Left,0)-Step(Me.Description.Width,Me.Section(0).Height),,B
 
I

iccsi

To do what you want, you need to avoid the Border property
and use code in section's Print event to draw the vertical
lines:

Me.Line _

(Me.Code.Left,0)-Step(Me.Code.Width,Me.Section(0).Height),,B
Me.Line _

(Me.Description.Left,0)-Step(Me.Description.Width,Me.Section(0).Height),,B

Thanks for the informaiton,
It draws a line for the section, but it does not grow with text box.
Are there any way to consider grow text boxes?

Thanks again,
 
M

Marshall Barton

iccsi said:
Thanks for the informaiton,
It draws a line for the section, but it does not grow with text box.
Are there any way to consider grow text boxes?


Arrggghhhh. That should have been:

Me.Line (Me.Code.Left,0)-Step(Me.Code.Width,Me.Height),,B
Me.Line _

(Me.Description.Left,0)-Step(Me.Description.Width,Me.Height),,B

The other way to do this would be to use horizontal line
controls at the top and bottom of the section. Then use the
Line method to draw the vertical lines:

Me.Line (Me.Code.Left,0)-Step(0,30000)
Me.Line (Me.Description.Left,0)-Step(0,30000)
Me.Line _
(Me.Description.Left+Me.Description,Width,0)-Step(0,30000)
 

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