Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Graph Object Controls Post Reply Post New Topic
Author Message
danasegarane
Newbie
Newbie
Avatar

Joined: 14 May 2007
Location: India
Online Status: Offline
Posts: 10
Quote danasegarane Replybullet Topic: Graph Object Controls
    Posted: 06 Apr 2010 at 9:38pm
Hi All,
        I am developing crystal reports using VS2005. In my report I have a graph object with the Chart type as Bar . I want set the this option programmatic .

Right Click Reports -->Chart options-->Grid-->Group axis tab-->label tab -->
 Manual number groups between labels.

I want set this from coding.
I can able to access the graph object using.

   Dim objReportLabels As CrystalDecisions.CrystalReports.Engine.GraphicObject
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 07 Apr 2010 at 5:36am
Actually, you're not going to use a GraphicObject, which is for handling images.  You need to use a ChartObject.  However, there doesn't seem to be a property available so that you can set the type of chart at runtime.
 
One option to simulate this would be to create a chart of each type that you want to have available to the user.  Stack them up so that they all start at the same position and suppress ALL of them.  I would also give each of them a meaningful name like Bar_Chart, Pie_Chart, etc. so that they're easier to find in your code.  Then, in your code, set the ChartObject.ObjectFormat.EnableSuppress to false for the chart the user has selected.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.