How to Truncate Text in Bold Reports Report Designer
To truncate text in the Bold Reports Report Designer, open the Expression Editor for the textbox or tablix cell and enter an IIf expression that checks the text length with Len, shortens it with Left, and appends a space and three dots (...). The displayed value is your character limit plus the ... suffix; shorter text shows in full.
When to use this
Use this when a field holds long values that overflow a textbox or tablix cell and clutter the layout. For example, a long product name or description that needs to fit a fixed-width column. An expression trims the displayed value to a set number of characters and marks the cut with three dots (...).
The expression changes the rendered value in that cell, so exports and printouts show the truncated text too. It does not change the data in the dataset.
Steps to Truncate Text in Bold Reports
1. Open the Expression Editor
- In the Bold Report Designer, select the tablix cell or textbox where you want to truncate the text.
- Right-click the selected element and choose Expression from the context menu to open the Expression Editor.
2. Set the Truncation Expression
-
Enter the following expression. Type a plain ampersand (
&) and a plain greater-than sign (>)=IIf(Len(Fields!YourFieldName.Value) > 10, Left(Fields!YourFieldName.Value, 10) & " ...", Fields!YourFieldName.Value)This checks whether the field is longer than 10 characters. If it is,
Leftkeeps the first 10 characters and appends" ..."(a space and three dots), so the cell shows 10 characters plus that suffix; otherwise the full value is shown. -
Change the number
10to the character limit you want. The displayed value is always that number of characters plus the...suffix. -
Replace
YourFieldNamewith the actual dataset field name (e.g.,ProductName). -
Click OK to apply the expression.
Note: This expression checks if the length of
YourFieldNameexceeds 10 characters. If true, it truncates the text to the first 10 characters and appends “…”; otherwise, it displays the full text.
3. Preview the Report
-
Save your report and click Preview in the Report Designer.
-
Before Truncation: Full text is displayed, which may cause layout issues or clutter.
-
After Truncation: Text longer than 10 characters is truncated with an ellipsis, improving layout and readability.
Conclusion
Values longer than your limit appear shortened to the first 10 characters followed by a space and three dots. For example, Mountain B ... (10 characters plus the ... suffix) while shorter values display in full. The cell fits its column cleanly, and the truncated text carries through to PDF, Excel, and other exports because the expression changes the rendered value.