예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            EmployeeInfoCrystalReport rpt = new EmployeeInfoCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void showAllEmployeeButton_Click(object sender, RoutedEventArgs e)
        {
            List <EEmployee> employeeInfoList = bEmployeeObj.GetAllEmployeeInfo();

            if (employeeInfoList.Count > 0)
            {
                EmployeeInfoCrystalReport employeeInfoCrystalReport = new EmployeeInfoCrystalReport();
                ReportUtility.Display_report(employeeInfoCrystalReport, employeeInfoList, this);
            }
            else
            {
                MessageBox.Show("Don't have any records.", "Employee Info", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }