> The problem I am having is this: Is there any way to make the

rectangle grow based on the contents or a way to determine exactly

what the height should be so I do not lose text when printing? The

data I am printing will contain line breaks so I cannot use a fuction

that will simply tell me how long the string is based on the font

size.

If you know the maximum width of the area you wish to print in, then you can

use the Graphics.MeasureString function because that can take in an optional

max width. If you do not know the max width, then One can only assume that

it's actually 1 line per line break, in which you can simply read the number

of line breaks and then you will know how many lines you have, and can

measure the height appropriately by measuring one line and multiplying by

the total number of lines.

-akshay