Format text in part of a string

Issues related to using our fonts in Crystal Reports

Format text in part of a string

Postby mikef001(Legacy Member) on Wed Oct 11, 2006 12:59 pm

I have a report that the heading and body text change based on a formula in the report.

Part of the formula needs to be bold but the remaining portions do not. I want to make only the cstr(Sum ({ado.unpaid}, {ado.T_sCode})) bold in the following formula with the remaining text not bold, can anyone help?

if {?Notice} = '10-Day' then 'You are required to pay $' + cstr(Sum ({ado.unpaid}, {ado.T_sCode})) + ', payment of which must be in the form of certified funds or money order, within 10 days of receipt of this notice, to the landlord agent named below, or in the alternative, to vacate and surrender possession of the premises.' else

Thanks in advance
mikef001(Legacy Member)
 

Re: Format text in part of a string

Postby Capura(Legacy Member) on Wed Jan 10, 2007 5:35 am

Hi.

If you try something like this (in Basic syntax):

Dim TextBody as String

TextBody = "<b>FirstName:</b>&nbsp;&nbsp;" + {MyTable.FirstName}

and then format text for "Text Interpretation = HTML", then the headline (FirstName) will be bold and the name is regular text.
Capura(Legacy Member)
 


Return to Crystal Reports

Who is online

Users browsing this forum: No registered users and 1 guest