Suppose we have text as "Print this whole sentence in horizontal line". We have text box with stretch overflow option "yes" i.e checked. If we print it comes like --------------- print this whole sentence in horizontal line ----------------------- But we have to print in single line like ------------------------------------------------------- print this whole sentence in horizontal line ---------------------------------------------------------- The whole idea what we are looking for is, depends upon the maximum length of text (dyamic), the text box width should increase at max.