Problem with growing textbox

C

CyberDwarf

Hi,

I have a report with a repeating detail section, containing a text field
(which can grow), plus three more text fields, which cannot grow.

These fields are horizontally aligned.

This detail must have a border, plus vertical dividing lines between the
fields.

My problem is that I cannot find a way to produce vertical dividing lines
which will grow to the same height as the expanding text box. I have tried
using the format event of the Detail section to adjust the height of the
non-growing text boxes and to adjust the height of the vertical dividing
lines.

But no luck!

Am I barking up the wrong tree, or is this just not possible?

Any suggestions gratefully accepted.

TIA

Steve
 
M

Marshall Barton

CyberDwarf said:
I have a report with a repeating detail section, containing a text field
(which can grow), plus three more text fields, which cannot grow.

These fields are horizontally aligned.

This detail must have a border, plus vertical dividing lines between the
fields.

My problem is that I cannot find a way to produce vertical dividing lines
which will grow to the same height as the expanding text box. I have tried
using the format event of the Detail section to adjust the height of the
non-growing text boxes and to adjust the height of the vertical dividing
lines.


The final Height height of can grow text boxes and sections
is not known until the Print event. However the Print event
is too late to change the size of anything.

The way around that catch 22 is to draw the lines in either
the print event using code something like:

Me.Line _

(thistextbox.Left,thistextbox.Top)-Step(0,thistextbox.Height)
 
D

Duane Hookom

You will need to use the Line method in the On Print event of your report
section. The Grown height of controls can't be determined until this event.
At that point, it is too late to set the height of other controls.
 

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