Skip to Content

How to create Custom shapes in Crystal Reports ?


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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 22, 2014 at 03:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2014 at 03:45 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Jamie Wiseman Tanveer Ahmed Mohammed

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.