Solved

Bold string in a formula field

Posted on 2014-11-07
2
237 Views
Last Modified: 2014-11-13
How do I go about bolding part of a formula field that is a string?  
My formula is as follows and I want to bold the string: *DTC*

if {receiver.r_ussname} startswith "DTC" then
    {receiver.r_letter}& " *DTC*"
Else
    {receiver.r_letter}


Thanks!
0
Comment
Question by:IO_Dork
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40429197
I can think of 2 ways to do this.

1.  Add a text box to the report where you want to display
     Drag the {receiver.r_letter} field into the box
     Change your formula to
if {receiver.r_ussname} startswith "DTC" then
     " *DTC*"
 Else
    ""

Open in new window

   Drag the new formula into the text box
    Right click the text box
    Click EDIT
    Select the formula field
    Set it BOLD through the ribbon

2.  Use your formula but add HTML or RTF encoding to it
if {receiver.r_ussname} startswith "DTC" then
     {receiver.r_letter}& " <b>*DTC*>/b>"
 Else
     {receiver.r_letter}

Open in new window

Put it on the report
Right click it
Click FORMAT FIELD
Click the COMMON TAB
Set the interpretation to HTML

mlmcc
0
 

Author Closing Comment

by:IO_Dork
ID: 40441191
thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now