cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Custom shapes in Crystal Reports ?

tanveer1
Active Contributor
0 Kudos


All,

i need to create two thickish semi circles like half donuts... each of the donut needs to be conditionally formatted depending on some values. am wondering is it possible to create half donuts ? or custom shapes for that matter to suit my requirement.

Accepted Solutions (0)

Answers (2)

Answers (2)

JWiseman
Active Contributor
0 Kudos

hi Tanveer,

typically creating any custom shapes in crystal is limited to the chart expert and in some cases appending text from graphic fonts or using the limited rtf coding.

can you provide a mock-up and a bit more description on what you're looking to do and i'll see if i've got a sample somewhere that does something similar. although i'm canadian i do not have anything that creates donuts but there may be a workaround.

-jamie

tanveer1
Active Contributor
0 Kudos

i need it as shown... i need the split to be always half.... and hales will conditionally formatted depending on some values

abhilash_kumar
Active Contributor
0 Kudos

CR has a 'Doughnut Chart' built-in.

It needs a field under 'Change of' and one field under 'Show Values'.

-Abhilash

JWiseman
Active Contributor
0 Kudos

here's what i would recommend and it's a bit of work:

create a bunch of formulas that you can populate dynamically.

@green

if yourcondition1 then 1 else 0

@red

if yourcondition2 then 1 else 0

@blue

if yourcondition3 then 1 else 0

etc.

as Abhilash mentioned you need to use a Donut type chart. you create 1 formula for every colour that you want to use in the chart. you then add all of them as Show Values. you'll get a message / warning about adding all of the values but you can ignore that warning.

now you have to manually colour each part of the chart. there is a Color Expert in the chart but i would not recommend using it as it is very limited. you are better off creating one series / show value in the chart for every colour that you use and populating those formulas conditionally.

when you run the report, you need to ensure that only 2 of the formulas meet a TRUE condition. that way you'll have two halves all the time.

-jamie

former_member205840
Active Contributor
0 Kudos

Hi Tanveer,

There is no custom objects / designs to place in crystal reports however, You can go in Windows Character Map and change the font to Wingdings and see the pictures and pick your picture.  Use ASCI value of that and use in crystal reports like ASC() and change the font to Wingdings at crystal report for that particular character.

Use condition to insert this asc() values like :

If {Value } = 1 Then Asc(2314) else Asc(48747)

Note: the values are not correct you may have to find correct values.

This will help you to insert desired shapes.

Thanks,

Sastry