crystal report and list<>
-
hi all i have an win application form suppose to show some reports in CrystalReportView i have no idea how to assign a list<> of class to MyCrystalReport
public Form1() { InitializeComponent(); StdList = new List<studants>(); StdList.Add(new studants("1", "1", 1)); StdList.Add(new studants("2", "2", 2)); StdList.Add(new studants("3", "3", 3)); StdList.Add(new studants("4", "4", 4)); StdList.Add(new studants("5", "5", 5)); } private void Form1\_Load(object sender, EventArgs e) { CrystalReport1 cr = new CrystalReport1(); cr.SetDataSource(StdList); crystalReportViewer1.ReportSource = cr; }
but i have not assigned any table with CrystalReport1 it`s all because of i have not any dataset or database or ... and i do not know how to assign add or assign a list<> of objects to my crytalReport Project (CrystalReport1) how can i assign it and work on it i should definitely use list<> please help me!!!!!!!!!!
-
hi all i have an win application form suppose to show some reports in CrystalReportView i have no idea how to assign a list<> of class to MyCrystalReport
public Form1() { InitializeComponent(); StdList = new List<studants>(); StdList.Add(new studants("1", "1", 1)); StdList.Add(new studants("2", "2", 2)); StdList.Add(new studants("3", "3", 3)); StdList.Add(new studants("4", "4", 4)); StdList.Add(new studants("5", "5", 5)); } private void Form1\_Load(object sender, EventArgs e) { CrystalReport1 cr = new CrystalReport1(); cr.SetDataSource(StdList); crystalReportViewer1.ReportSource = cr; }
but i have not assigned any table with CrystalReport1 it`s all because of i have not any dataset or database or ... and i do not know how to assign add or assign a list<> of objects to my crytalReport Project (CrystalReport1) how can i assign it and work on it i should definitely use list<> please help me!!!!!!!!!!
Does CR support List<> as a datasource? I have not used that POS in a few years but I doubt it has moved that fast. I suggest you do some research on the Business Object web site.
Never underestimate the power of human stupidity RAH