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

dynamically hide/show chart legend

Status
Not open for further replies.

espltd

Programmer
Apr 6, 2005
233
US
Hi,
just wondering if there is a way to allow the user to select hide or show legends on a crystal report chart? I am using vs2005 crystal reports 10 that comes with it. One way would be to create 2 seperate reports, one with legends and one without and display the appropriate one based on the user selection. Just wondering if there is another way to do this?
Thanks
 
Rather than two separate reports, you could use a parameter and place two versions of the chart in different report sections a and b, and then suppress the sections conditionally.

-LB
 
Hi sounds like a good idea. I ran into another issue but not sure if there is a solution. I was trying to modify chart parameters dynamically in code.
I was able to create a chartobject and change parameters of the chartobject as shown but the parameters are very limited.
ChartObject newchart = (ChartObject)document.ReportDefinition.ReportObjects["Graph7"];
newchart.size = 500;

I noticed that the CRAXDDRT.GraphObject has many of the parameters I would like to set but it does not allow a conversion from ChartObject type to GraphObject. Anyhow just wondering if there is a way to get the chart into a GraphObject in the code?
Thanks.
 
Hi just wondering if anyone knows if it is possible with Crystal Reports 10 to place a .net web control on the report and populate the control with data from a dataset. For example like a text box and listing a bunch of addresses.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top