Keeping two text boxes together

  • Thread starter Thread starter BarbaraC
  • Start date Start date
B

BarbaraC

I am generating medical reports that have 5 text boxes
which may or may not contain some interpretive text (such
a "Interpretation", "Gross Description", "Comments",
etc.). Each one takes the entire width of the page and
they appear one after the other vertically. Each one can
grow or shrink.

If there is no text in one of the text boxes I don't want
anything to appear including the heading. So instead of
having a label attached to the text box (which would
still display if there was no data in the field) I
created a separate text box and I fill in the "label
information" that I want if there is data in the main
field. If there is nothing in the main field then both
text boxes (the "label" text box and data text box)
shrink. If there is data then the label text box is
displayed.

The problem occurs when the "label" text box is the last
item on page 1 of the report and the actual data text box
starts on page 2. How can I keep them together? Or what
is a better way to do this?

The goal is to always generate a one-page report whenever
possible.... that's why I need to have the labels shrink
instead of just not be visible!
 
BarbaraC said:
I am generating medical reports that have 5 text boxes
which may or may not contain some interpretive text (such
a "Interpretation", "Gross Description", "Comments",
etc.). Each one takes the entire width of the page and
they appear one after the other vertically. Each one can
grow or shrink.

If there is no text in one of the text boxes I don't want
anything to appear including the heading. So instead of
having a label attached to the text box (which would
still display if there was no data in the field) I
created a separate text box and I fill in the "label
information" that I want if there is data in the main
field. If there is nothing in the main field then both
text boxes (the "label" text box and data text box)
shrink. If there is data then the label text box is
displayed.

The problem occurs when the "label" text box is the last
item on page 1 of the report and the actual data text box
starts on page 2. How can I keep them together? Or what
is a better way to do this?

The goal is to always generate a one-page report whenever
possible.... that's why I need to have the labels shrink
instead of just not be visible!


The technique for keeping some of the controls in a section
together on a page is to add one or more group levels based
on the same field that the details are sorted by. Add a
header and/or footer section for the pseudo group and move
the group of controls to their own section where you can now
specify the section's KeepTogether property.
 
Back
Top