The articles in this section of the Knowledge Base involve working with Auto-Size properties in Report Designer. To learn additional information regarding Auto-Sizing properties, see Understanding Auto-Sizing Properties in Report Designer.
This article is regarding automatically resizing Text components.
The automatic resizing of text components behaves differently from other components. The Can Shrink and Can Grow properties impact only the height of a text component and not the width. Figure 01 demonstrates an example of the Can Grow property causing the Text component height to change:
The Can Shrink property performs the opposite function. When it is set to true, and there is more space than is needed for the text, the Report Designer automatically decreases the height of the Text component.
It is possible to set both the Can Grow and Can Shrink properties to true. In this case, the height automatically increases or decreases depending on the amount of space the text takes up.
The Word Wrap component determines whether or not the text in the Text component automatically wraps when it becomes too long to fit on a single line. If Word Wrap is set to false, the text is cropped at the border of the component. When it is set to true, new lines are added until all of the text is displayed on multiple lines.
When Word Wrap is set to false, Report Designer calculates the new size based on the height of a single line only. If you want Report Designer to increase the height of the component based on all of the text lines, Word Wrap should be set to true so that the text automatically wraps, and the calculation can be based on the combined height of all of the text lines.
The Auto Width property can impact the way a Text component changes size. If the Auto Width property is set to true, then the text component automatically changes its width to match the width of the text. The Auto Width , Can Shrink , and Can Grow properties can be implemented simultaneously.
If the Auto Width property is set to false, the height of the text depends on settings of the Can Shrink and Can Grow properties. When the Auto Width property is set to true, the width automatically changes.