I am using VC++ and crystal report, in report I want chart to be displayed, I am using the Datset and giving the records at run time,All the records are displayed properly but the graph is not displaying correct output,infact I am getting no bars(I have chosen a BAR GRAPH) in graphs,please help.
In my dataset I taken a simple table called Student(StdID,Marks); now for this table I am suppling the data at runtime i,e
DataTable^ dt = gcnew DataTable(); DataSet^ ds = gcnew DataSet() ; dt->Columns->Add("StdID"); dt->Columns->Add("Marks"); DataRow^ dr = dt->NewRow(); dr[0]=1; dr[0]=80; .... dt->Rows->Add(dr); ds->Merge(dt); ReportDocument^ rpt = gcnew ReportDocument(); rpt->Load ("c:/rpt/expt3.rpt"); rpt->SetDataSource(dt); crystalReportViewer1->ReportSource=rpt;
Now in report I put one chart and Textboxes which display ID and Marks. ID and Marks are displayed correctly but no graph is displayed.
for chart I configured some thing like this ChartExpert->Data in that I chosen the "For Each record" show values as marks and x-axis as ID.