水晶报表2

        private void frmPrintUserPrize_Load(object sender, EventArgs e)         {       io

      DBOperate operate = new DBOperate();        table

     operate.OpenConnection();         object

    DataTable table = operate.GetTable("select * from  tb_prize");//1.      select

       PrizeReport pr = new PrizeReport();//2.   tab

          pr.SetDataSource(table);//3.      new

       crystalReportViewer1.ReportSource = pr;//显示报表   void

          operate.CloseConnection();opera

        }ab

相关文章
相关标签/搜索