有一个数据库,字段CODE,NAME,STD。里面有多个数据。
现在是想通过reportViewer  来做一个报表,但是不是全都是打印出来,而是通过数据库查询后其中一个数据进行报表,进行打印
之前做的是datagrideview,但是reportViewer  如何和DataSet 绑定起来就不是很明白了,还望大神指点一二,谢谢。
            string str_con = @"Data Source=192.168.0.2;user=sa;pwd=********;database=ts";            string sql = string.Format("SELECT *FROM TS_projectse  where code like '%{0}%'", textBox1.Text.Trim());           
            SqlConnection conn = new SqlConnection(str_con);            conn.Open();            SqlCommand comm = new SqlCommand(sql, conn);            DataSet ds = new DataSet();            SqlDataAdapter da = new SqlDataAdapter(comm);