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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void staffLoadBtn_Click(object sender, EventArgs e)
        {
            StaffDataSet ds  = new StaffDataSet();
            SqlCommand   cmd = sqlCon.CreateCommand();

            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "select * from staff";
            cmd.ExecuteNonQuery();
            DataTable      dt = new DataTable();
            SqlDataAdapter da = new SqlDataAdapter(cmd);

            da.Fill(ds.StaffTableReport);
            StaffCrystalReport1 staffReport = new StaffCrystalReport1();

            staffReport.SetDataSource(ds);
            staffCrystalReportViewer1.ReportSource = staffReport;
        }