public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptluongnhanvien rpt = new rptluongnhanvien();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            string constr = ConfigurationManager.ConnectionStrings["quanlythuvien"].ConnectionString;

            using (SqlConnection cnn = new SqlConnection(constr))
            {
                SqlCommand cmd = cnn.CreateCommand();
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.CommandText = "pr_luonghon5tr";
                //cmd.Parameters.AddWithValue("@nam", Convert.ToInt32(mtxt_nam.Text.ToString()));
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                DataTable      dt = new DataTable();
                da.Fill(dt);
                rptluongnhanvien rp = new rptluongnhanvien();
                rp.SetDataSource(dt);
                crystalReportViewer1.ReportSource = rp;
            }
        }