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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bold selected text in formula 1

Status
Not open for further replies.

hallux

Programmer
Feb 25, 2003
133
US
Function = @Team
-----------------
StringVar BBTeam;
BBTeam := {team.managername} + ": " + {team.playername}

Function = @DisplayTeam
-----------------
WhilePrintingRecords;
StringVar BBTeam;
-----------------

Output in preview mode = "manager: Brown Charlie"

How can I change the font style to bold for "manager:" using CR 8.5 Dev?

-Brent
 
Create a blank text field. Double click it to make it accessible to type data in it. Then click on the field team.managername and drag it into the text field, type in your : and the space you need, then drag the team.playername into the text field. The text field will grow to accept the full size. Now you can edit the text field and highlight the area you want bold and select bold off of the toolbar.
There may be an easier way :)
 
I have never done this, but you can use HTML tags within your formula to acheive this effect. I believe rosemary lieberman, a frequent contributor here, is the person that gave me this information.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
dgillz is referring to:

StringVar BBTeam;
BBTeam := &quot;<B>&quot; + {team.managername} + &quot;</B>&quot; + &quot;: &quot; + {team.playername}

Right click the formula field->Format Field->Paragraph Formatting->Text Interpretation->HTML text

This embeds the formatting into the field for the {team.managername}, if that's what you want. At any rate, you get the idea of how to format something as bold within a formula.

-k
 
Thanks everybody.
The html interpretation to add the bold fit my need, only it also greatly increased the font size. One solution I did find is to add <font size = 1> as explained in the thread 767-422451.
I appreciate your assistance.
-Brent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top