Verticle Lines

  • Thread starter Thread starter David
  • Start date Start date
D

David

How can I create verticle lines on reports that grow with
text? Some text fields have 10 characters, some have 100
characters. Hence I have given the text fields the
ability to "grow". In the detail section, I have verticle
lines seperating each text field. How can i get the
verticle lines to grow with the detail section (or fields)
when many characters are displayed?

Thank you for your hard work, I have learned a ton over
the last few months.

David
 
David said:
How can I create verticle lines on reports that grow with
text? Some text fields have 10 characters, some have 100
characters. Hence I have given the text fields the
ability to "grow". In the detail section, I have verticle
lines seperating each text field. How can i get the
verticle lines to grow with the detail section (or fields)
when many characters are displayed?


The text box's grow size is not known in the Format event
and you can not change the size of a control in the Print
event so you can not use a Line control.

Use the report's Line method in the section's Print event.
 
Use the OnPrint event of the detail section to draw the lines in code.
For example...]

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

Will draw a vertical line the height of the detail section hard against the
left margin.

HTH
Sam
 
Thank you Sam,
Easy and perfect solution.
-----Original Message-----
Use the OnPrint event of the detail section to draw the lines in code.
For example...]

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

Will draw a vertical line the height of the detail section hard against the
left margin.

HTH
Sam
How can I create verticle lines on reports that grow with
text? Some text fields have 10 characters, some have 100
characters. Hence I have given the text fields the
ability to "grow". In the detail section, I have verticle
lines seperating each text field. How can i get the
verticle lines to grow with the detail section (or fields)
when many characters are displayed?

Thank you for your hard work, I have learned a ton over
the last few months.

David


.
 
But what if you want to have that all your vertical lines
need to have a fixed height let's say ie 3 inches.

Can this be done?

-----Original Message-----
Use the OnPrint event of the detail section to draw the lines in code.
For example...]

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

Will draw a vertical line the height of the detail section hard against the
left margin.

HTH
Sam
How can I create verticle lines on reports that grow with
text? Some text fields have 10 characters, some have 100
characters. Hence I have given the text fields the
ability to "grow". In the detail section, I have verticle
lines seperating each text field. How can i get the
verticle lines to grow with the detail section (or fields)
when many characters are displayed?

Thank you for your hard work, I have learned a ton over
the last few months.

David


.
 
But, the question was how to deal with a section that grows.
If it doesn't grow, you can just use Line controls.

But, sure you can draw verticle lines with any specific
height that's less than or equal to the height of the
section. Double check Help for details on the Line method,
but drawing a 3" line from the top of the section would look
something like:

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

But what if you want to have that all your vertical lines
need to have a fixed height let's say ie 3 inches.

Can this be done?

-----Original Message-----
Use the OnPrint event of the detail section to draw the lines in code.
For example...]

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

Will draw a vertical line the height of the detail section hard against the
left margin.

HTH
Sam
How can I create verticle lines on reports that grow with
text? Some text fields have 10 characters, some have 100
characters. Hence I have given the text fields the
ability to "grow". In the detail section, I have verticle
lines seperating each text field. How can i get the
verticle lines to grow with the detail section (or fields)
when many characters are displayed?

Thank you for your hard work, I have learned a ton over
the last few months.

David


.
 
Back
Top