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

Can Text Background Color Be Set with RTF Formula in Crystal?

Status
Not open for further replies.

jrjoyce

Programmer
Joined
May 16, 2006
Messages
1
Location
US
I have been using formulas set to be interpreted as Rich Text Format (RTF) successfully in different versions of Crystal Reports for some time. However, my understanding is that Crystal only supports a very limited subset of the RTF standard. While I have been able to set fonts, font color, font size, etc., I have not been able to set a background color using an RTF string, using any of the approaches I'm aware of, even the one where Microsoft diverted from their own standard.

Does anyone know if it is possible to set the background color for a text string in Crystal using RTF or is this just another RTF function that Seagate/Business Objects/SAP decided not to support?

If it can be done, would you please specify the appropriate command format or include a code fragment to illustrate the procedure?

Of course, it is possible to format much of the text with an RTF string and just set the field background color programmatically using the Background option on the Format/Border tab, but that limits you to setting all of the background, instead of allowing you to highlight specific characters or words.

The only information I've gotten directly from Crystal is the SAP Note 1214798 - 'What RTF tags are supported in Crystal Reports?', but from experimenting with RTF, this document appears to be very incomplete. Is anyone aware of a more detailed document on RTF tags supported in Crystal or how the RTF support varies with the version of Crystal?

Thanks for your help,

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top