Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            StaffRPT11 rpt = new StaffRPT11();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void staffRptToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                StaffRpt   frm1 = new StaffRpt();
                StaffRPT11 rp   = new StaffRPT11();

                frm1.RD       = rp;
                frm1.strQuery = "select * from tbl_staff";
                frm1.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }