Click here to Skip to main content
15,908,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I facing prog with parameter and dataset, and it possible to parameter and data set to crystal report at a same time.

My Code is:

C#
SqlDataAdapter da = new SqlDataAdapter("select distinct st.EmpNameC, st.Dated,st.ShiftGroupC from ShiftTable as st inner join ClientDeployment as cd on st.EmpCodeC=cd.EmpCodeC where st.dated ='03/Oct/2014' and cd.LocationC='J1' and st.EmpnameC='prasanna'", cnn);
           DataSet ds = new DataSet();
           da.Fill(ds);
           CryRpt.SetDataSource(ds.Tables[0]);
           crystalReportViewer1.ReportSource = CryRpt;
           crystalReportViewer1.Refresh();
           // Parameter Value
           RptDoc.SetParameterValue("date1", "01/10/2014");


here i want use parameter value and that query to pass crystal report it possible kindly tell me
Posted
Comments
prasanna.raj 18-Oct-14 0:44am    
How to use
DataRetriever dr = new DataRetriever(); in vs2008

1 solution

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