示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            report         re  = new report();
            SqlDataAdapter sda = new SqlDataAdapter("select * from View_1 where Salary<5000 ", connection.con);

            sda.Fill(re.company2DataSet.View_1);
            re.reportViewer1.RefreshReport();
            re.Show();
        }
示例#2
0
        private void aLLToolStripMenuItem_Click(object sender, EventArgs e)
        {
            report         re  = new report();
            SqlDataAdapter sda = new SqlDataAdapter("select * from View_1", connection.con);

            sda.Fill(re.company2DataSet.View_1);
            re.reportViewer1.RefreshReport();
            re.Show();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            report         re  = new report();
            DataView       dv  = new DataView();
            DataTable      dt  = new DataTable();
            SqlDataAdapter sda = new SqlDataAdapter("select * from View_1", connection.con);

            sda.Fill(dt);
            sda.Fill(re.company2DataSet.View_1);
            re.reportViewer1.RefreshReport();
            re.Show();
        }