[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to underline in SSRS using format code

Posted on 2009-04-20
Medium Priority
Last Modified: 2012-05-06
I have the following expression which does not work:

=Format("Customer Name", "Underline")

Customer Name is not a field name, it is just text.  I want to underline it, however this expression returns the word Underline.
Question by:BostonMA
  • 2
LVL 16

Accepted Solution

Auric1983 earned 1000 total points
ID: 24188531
You'll want to modify the TextDecoration property of that textbox.

If you want to programatically change it then you'd have eto do something like

=IIF(Textbox.value="Customer Name",Underline,None)

Author Comment

ID: 24188642
I need to be able to create the following display in the report:

Customer Name: Mike Smith

where 'Customer Name' is underlined.

I tried to do it as follows

="Customer Name: " + Fields!CustomerName.Value

which produced everything I need except Customer Name was not underlined.  Do you know how to do that?

LVL 11

Assisted Solution

shorak earned 1000 total points
ID: 24202865
The 2005 version of reporting services dosnt suppot mixed formatting within the same textbox/cell so you will need to split your expression across 2 cells or textboxes and have one contain the label and the other containing the actual customer name and set the text format to be underlined for that textbox/cell.

Apparently the 2008 version allows you to do what your trying to achieve


Author Closing Comment

ID: 31572459
Thank you.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question