Crystal Report
-
Hi all On my project I have created a connection and have retrieved some data from the database by using a stored proc. Here is the code: string cnString = "Data Source=localhost;Initial Catalog=Northwind;User Id=MyName;Password=MyPassword"; SqlConnection cn = new SqlConnection(cnString); SqlCommand cmd = new SqlCommand("sp_Products", cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds,"Products"); The database is now storing in my dataset. But how can I send it to display on my reportviewer by using crystal report that comes with visual studio? Thanks advance
-
Hi all On my project I have created a connection and have retrieved some data from the database by using a stored proc. Here is the code: string cnString = "Data Source=localhost;Initial Catalog=Northwind;User Id=MyName;Password=MyPassword"; SqlConnection cn = new SqlConnection(cnString); SqlCommand cmd = new SqlCommand("sp_Products", cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds,"Products"); The database is now storing in my dataset. But how can I send it to display on my reportviewer by using crystal report that comes with visual studio? Thanks advance