Hey, I've tried creating a dataset so that the report displays a certain data that i query. My code looks like this:
My problem is that when the report displays it only displays the first row instead of all (*). Is there anything wrong with this code?
Code:
// getting the dataset string connString = System.Configuration.ConfigurationSettings.AppSett ings.Get("ConnectionString"); string query = "Select * from SaleReceipts"; conn = new OleDbConnection(connString); conn.Open(); da = new OleDbDataAdapter(query, conn); ds = new DataSet(); da.Fill(ds,"SaleReceipts"); // Crystal report code Report1 rpt1 = new Report1(); rpt1.SetDataSource(ds); crystalReportViewer1.ReportSource = rpt1;
Comment