Solved

How to Bold a formula within another formula

Posted on 2016-10-31
4
56 Views
Last Modified: 2016-10-31
How can I bold {@DisplayPersonQualifier} results within another formula.

Formula: DisplayPersonwithQualifier

{@DisplayPersonQualifier} & ' - ' & {@DisplayPerson}
0
Comment
Question by:MikeM670
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 41867423
Without resorting to HTML or RTF coding, it is not possible.

That said there is a way to do it

Add a text box to the report
Drag  the {@DisplayPersonQualifier} formula into the textbox
Type the "  -  " in the text box
Drag the {@DisplayPerson} formula into the textbox

Right click the textbox
Click FORMAT TEXT
You can now format each individual part of the text box independently so the first part can be bold

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867647
Hi mlmcc,

I was hoping for a more elegant solution but maybe I should of asked this instead.  Below is the
DisplayPersonQualifier formula's code.  Would it be possible to do the "Bolding" within this formula before it is called by the DisplayPersonwithQualifier?  I have tried various approaches but nothing would work.



local stringvar Qualifier1;
local stringvar Qualifier2;
local stringvar Qualifier3;

if not(isnull({CasePerson.Qualifier1})) and trim({CasePerson.Qualifier1}) <> ""
then Qualifier1 := ProperCase ({CasePerson.Qualifier1});

if not(isnull({CasePerson.Qualifier2})) and trim({CasePerson.Qualifier2}) <> ""
then Qualifier2 := ', ' & ProperCase({CasePerson.Qualifier2});

if not(isnull({CasePerson.Given3})) and trim({CasePerson.Given3}) <> ""
then Qualifier3 := ', ' & ProperCase({CasePerson.Given3});

Qualifier1 & '' &  Qualifier2 & '' & Qualifier3;
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41867657
The only way would be to use HTML encoding

Not sure which part you want bold

Change last line to

'<b>' & Qualifier1 & '</b>' &  Qualifier2 & '' & Qualifier3;

Right click the object on the report
Click FORMAT FIELD
On the PARAGRAPH tab
Set TEXT INTERPRETATION to HTML

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867672
Once again you provided the solution and I've learned a new feature using HTML!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

623 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