Click here to Skip to main content
16,019,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my code and i can't complete it :-

C#
RPT.DataSet_Car_id ds = new RPT.DataSet_Car_id();
                
                SqlDataAdapter dataAdapter = new SqlDataAdapter(s, con);
                dataAdapter.Fill(ds.Tables["Car_Details"]);
                //RPT.CrystalReport_Car_id report = new RPT.CrystalReport_Car_id();
                report.SetDataSource(ds.Tables["Car_Details"]);

                ParameterField PField = new ParameterField();
                ParameterDiscreteValue pdValue = new ParameterDiscreteValue();

                PField.Name = "Date_from";
                pdValue.Value = dtp_Date_from;
                PField.CurrentValues.Add(pdValue);
                PField.a 

                frm.crystalReportViewer_Car_id.ReportSource = report;
                frm.crystalReportViewer_Car_id.Refresh();
                frm.Show();
Posted
Comments
Alex M.H. 4-Feb-16 19:40pm    
the paremeter"xyz" instances are not bounded to the report nor to the dataadapters fill method - so it has no effect ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900