Articles in this section

How To Add And Style Multiple Expressions In A Text Box

Published:
Updated:

In Bold Reports Designer, you can place multiple expressions in a single Text Box and give each one its own formatting, such as bold, italic, or underline. This is especially useful in summary reports, where you can combine data fields (for example, names and dates) with descriptive labels to make the output clearer and more professional. This article applies to the Bold Reports Web Designer.

This guide explains how to insert expressions with the Expression editor and style each one individually from the Properties panel.

Steps to Add and Style Multiple Expressions in a Text Box

1. Add or Select a Text Box
  • Drag a Text Box from the toolbox onto the report canvas, or select an existing Text Box.
  • Click inside the Text Box to enter text editing mode.
    Text Box placed on the report canvas in text editing mode
2. Open the Expression Editor
  • Right-click inside the Text Box and select Expression from the context menu.
    Expression option in the Text Box context menu
3. Add the First Expression
  • In the Expression editor, enter the first expression. For example:
=Fields!FirstName.Value
  • Click OK to save the expression.
    First expression entered in the Expression editor
4. Add the Second Expression
  • While still in text editing mode, click to the right of the first expression tag.
  • Type your desired separator text directly into the Text Box (e.g., type " - " or a space).
  • Right-click again and select Expression.
  • Enter your second expression. For example:
=Fields!BirthDate.Value
  • Click OK to save. Repeat this step for any additional expressions you need.
    Second expression added to the same Text Box
5. Select and Style Individual Expressions

To style a specific expression without affecting the others:

  • Highlight the specific placeholder: Click and drag across the Expression tag you wish to format.
  • Open Properties: With the text highlighted, navigate to the Properties panel on the right.
  • Apply Formatting: Under Basic Settings, change the Font Style, Weight, or Color. For example, set the first expression to Bold and the second to Italic.
    Font style set to Bold for the selected expression in the Properties panel
6. Preview the Report
  • Click Preview to check that each expression appears with the style you applied.
    image.png
Conclusion

You can now place several expressions in a single Text Box and style each one on its own. This gives you more control over how your report looks and helps the output match your design requirements.

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