SSRS: Textbox with HTML Formatting

Providing rich formatting within text.

Most reports require some type of rich formatting usually reserved for HTML.  However, SSRS provides such formatting utilizing expressions.

Drag a textbox onto the Report Designer.

1-SSRS Textbox with HTML Formatting

Resize the textbox to fit. Here it is with some formatting.

2-SSRS Textbox with HTML Formatting

After setting the textbox expression to display the current date/time, my textbox looks like this.

3-SSRS Textbox with HTML Formatting

However, I would like “Date” to appear BOLD.
The problem is the textbox natively only would allow me to make the entire string BOLD or not.

First, select <<Exp<>, then Placeholder Properties.

4-SSRS Textbox with HTML Formatting

On the General property page, select HTML for Markup type, press OK.

5-SSRS Textbox with HTML Formatting

Now I am able to utilize HTML tags in my expression to set “Date” BOLD.

6-SSRS Textbox with HTML Formatting

Now my Date string contains HTML formatting.

7-SSRS Textbox with HTML Formatting

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s