Print Page | Close Window

problem with legend [SOLVED]

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=13535
Printed Date: 20 Apr 2025 at 3:05pm


Topic: problem with legend [SOLVED]
Posted By: lamnguyen1978
Subject: problem with legend [SOLVED]
Date Posted: 18 Jun 2011 at 7:28am
Hello, I am new to Crystal Reports and to this forum,
 
I did this short free tutorial on crytal reports :
 
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0f2cfae-0208-2d10-5f87-b67814b64af9?QuickLink=index&overridelayout=true - http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0f2cfae-0208-2d10-5f87-b67814b64af9?QuickLink=index&overridelayout=true
 
In my results, I only have three parts of pie chart rather than all 4, and my legends are labelled 2000,2001,2002 (instead of Amazon, Google, MSN, Yahoo).  
 
I repeated the same steps exactly as described, the only difference is that I am using  Crystal Reports for Visual Studio 2010 instead of 2008.
 
Can anyone help?
 
thanks,
 
Lam Nguyen


-------------
Lam Nguyen



Replies:
Posted By: lamnguyen1978
Date Posted: 25 Jun 2011 at 8:25am
I made it work by changing the framework from 4.0 Client Side to 4.0 and  adding this code:
 

private void crystalReportViewer1_Load(object sender, EventArgs e)

{
CrystalReport1 report7 = new CrystalReport1();
this
.crystalReportViewer1.ReportSource = report7;
crystalReportViewer1.Refresh();
}
 


-------------
Lam Nguyen



Print Page | Close Window