Hello,
I have report on Crystal Report I would division it to two parts right and left, every part with different query for example the right side will be (Select Product_Name, Price from tbProducs where [Out] = '0') and in Left side (Select Product_Name, Price from tbProducs where [Out] = '1')
I need to know how I will division the report to two parts and by this way code fill report will change I would to know how will be, In below the current code I use now.
I have report on Crystal Report I would division it to two parts right and left, every part with different query for example the right side will be (Select Product_Name, Price from tbProducs where [Out] = '0') and in Left side (Select Product_Name, Price from tbProducs where [Out] = '1')
I need to know how I will division the report to two parts and by this way code fill report will change I would to know how will be, In below the current code I use now.
Code:
cmd = new SqlCommand("SELECT * FROM [tbJournals] where [Date] = '" + txtDateFrom.Text + "'", cnn);
cnn.Open();
da = new SqlDataAdapter(cmd);
dt = new DataTable("tbl");
da.Fill(dt);
cnn.Close();
ReportDocument _rdStudents = new ReportDocument();
_rdStudents.Load(Server.MapPath("Analysis_Report.rpt"));
_rdStudents.SetDatabaseLogon("sa", "password", ".\\SQLEXPRESS", "GoldenDeveloper");
_rdStudents.SetDataSource(dt);
CrystalReportViewer1.ReportSource = _rdStudents;
CrystalReportViewer1.RefreshReport();