Meet Parekh

Meet Parekh

  • 2k
  • 39
  • 551

reportviewer displays only design of report not data

Apr 26 2018 4:31 AM
i have follwing code for displaying reprort in reportviewer but it displays only design of report means title,column names etc not data
 
 
SqlCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from order1";
con.Open();
cmd.ExecuteNonQuery();
con.Close();
SqlDataAdapter da = new SqlDataAdapter(cmd);
rpv.RefreshReport();
rpv.ProcessingMode = ProcessingMode.Local;
rpv.LocalReport.ReportPath = s3;
ReportDataSource rps = new ReportDataSource("dataset1",s3);
rpv.LocalReport.DataSources.Clear();
rpv.LocalReport.DataSources.Add(rps);
 
please correct it 
thaks 
 
 

Answers (1)