SAP Knowledge Base Article - Public

1774913 - How to format an object with a gradient background color in Crystal Reports?

Symptom

  • Formatting an object with a gradient color.
  • The only choice of color available are solid colors, like blue, yellow, green,... not gradient colors.
  • In Crystal Reports, how to format the background color of an object with a gradient color?

Environment

  • Crystal Reports 2008
  • Crystal Reports 2011
  • Crystal Reports for Enterprise XI 4.0

Reproducing the Issue

  1. In Crystal Reports, right click on a text object or database field, and select "Format..."
  2. In the "Format Editor", under the tab "Border", check the option "Background", and select a color.
    •  
    • All available colors are solid colors, like blue, green, yellow,...
    • How to create a gradient color, like yellow to orange, for the background of the object?

Yellow to Orange.png

 

Cause

  • There is unfortunately no formatting option to format the background color of objects to be gradient.

Resolution

  • A suggestion will be to create the gradient color object of the required size in another application, and add the object as a picture in Crystal Reports.
    1. In another application, create a gradient objects of the size and desired color.
    2. Save the objects as an image.
    3. In Crystal Reports, insert the image at the desired location on the report.
    4. Insert the text objects, database fields or formula field on top of the gradient image object.

Now, when viewing the report, it will display the text of the database fields, text object, or formula fields, on top of the gradient colored object. 

Report.png

Keywords

CR for E, CRE, CR4E , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To

Product

Crystal Reports 2008 V0 ; Crystal Reports 2008 V1 ; SAP Crystal Reports 2001 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2011, feature pack 03

Attachments

Gradient color.rpt