private void btnPrintReport_Click(object sender, RoutedEventArgs e) { try { //EFClock[] clockArray = schoolData.EFClocks.Where(c => c.Clock.Value.Day == DateTime.Now.Day).ToArray(); //ArrayList clockReports = new ArrayList(); //for (int i = 0; i < clockArray.Length; i++) //{ // clockReports.Add(StudentDB.GetStudentNameByID(clockArray[i].StudentID) + " - " + clockArray[i].Clock.Value.ToString("MMMM dd, yyyy hh:mm:ss tt")); //} //PrintRecord print = new PrintRecord(clockReports); //print.Print(); ClockReport report = new ClockReport(); report.Show(); } catch (Exception) { } }