Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Specific Text in a Formula 1

Status
Not open for further replies.

CrystalUserGuy

Technical User
May 24, 2002
5
CA
Hi,

I have a if-then-else formula with several lines of text as the response. I would like the first line of the text to be in bold while the rest of the lines in regular font. Is there a way to switch on bold text for the first line using some sort of switch or command similar (in concept) to the carriage return command of chr(13)?

Thx
 
Dear CrystalUserGuy,

You can use HTML formatting to accomplish this:


Example:

//begin
If {Table.MyField} = "X" then

&quot;<b>&quot; & &quot;First Line of Response&quot; & &quot;</b>& Chr(13) &
&quot;Rest of Response&quot;

else

&quot;<b>&quot; & &quot;Alt First Line of Response&quot; & &quot;</b> & Chr(13) &&quot;Alt Rest of Response&quot;
//end

Once you have saved the formula place in the report. Right Clic, Choose Format/Paragraph Formatting Tab and in the Text Interpretation drop-down choose HTML.

Hope that helps, let me know if you need more assistance.

ro
Rosemary Lieberman
rosemary@microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top