View Full Version : Determining height of text box after data is placed in it


JohnCarley
08-11-2008, 10:05 AM
I am looking for a procedure to determine what the height of a text box (on a report) will be after a string of text is placed in it, and it has "grown" or "shrunk" to the size of the text.

I need to predetermine the height of the output, prior to building the data for a report. This will be used determine which images will be associated with each group.

I looked at the "TextHeight" and "TextWidth" properties, but these apply only to reports. Also, the the text is not wrapped, so the "textHeight" is the height of a single row, even if the text requires multipl rows to print.

Any suggestions?

ajetrumpet
08-11-2008, 04:49 PM
can you not simply use the control.height property? Does this change with the interior I wonder?