Click here to Skip to main content
12,691,637 members (31,923 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# SQL
I want to make a crystal report on a behalf of a parameter
for this i have made a store procedure

and My C# coding is as below:

but no data is showing, dataset is empty
SqlCommand cmd = new SqlCommand("App_date", con.conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@Appointment_Date", dateTimePicker1.Value.Date));
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet1 ds = new DataSet1();
da.Fill(ds, "App_report");
CrystalReport1 crypt = new CrystalReport1();
crystalReportViewer1.ReportSource = crypt;

Any help will be appreciated
Posted 9-Dec-12 8:08am
Updated 9-Dec-12 8:13am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170117.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100