Articles in this section

How to Justify Text in a Textbox in Bold Reports Report Designer

Published:
Updated:

To justify text in a textbox in the Bold Reports Report Designer, add a custom attribute named TextAlign with the value Justify to the textbox, then preview the report. The designer’s built-in Text Alignment property only offers Left, Right, and Center, so justified spacing requires this custom attribute.

When to use this

Use this when you want a textbox to spread its text evenly between the left and right edges, so both margins line up. This is common for paragraphs of descriptive text, terms and conditions, or notes in a report.

The built-in Text Alignment dropdown in the Report Designer supports only Left, Right, and Center. To get Justify, you set it through a custom attribute instead.

Steps

  1. Open your RDL report in the Bold Reports Report Designer.
  2. Select the textbox report item you want to justify.
  3. In the Properties panel, expand the Miscellaneous category.
  4. Select Custom Attributes to open the custom attribute editor.
  5. Add an attribute with the Name TextAlign and the Value Justify.
  6. Apply the change and preview the report.
    Justify.png

Note: the Report Viewer custom-property documentation shows this attribute in uppercase (TEXTALIGN with value JUSTIFY). The attribute name is not case-sensitive.

Result

On preview, the textbox content is justified: each line of text stretches to fill the width of the textbox, so the left and right edges align. The alignment is saved in the report’s RDL and renders the same way in the Report Viewer and in exported output.

Justify1.png

Related articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied