private void PrintReport(object sender, MouseButtonEventArgs e) { // WPF2PDF.CreateAndOpenPDF(ref DailyReportGD, "PayrollItemBreakDown"); FrameworkElement rpt = (FrameworkElement)DailyReportGD; PrintClass.Print(ref rpt); }
private void PrintDeductions(object sender, MouseButtonEventArgs e) { //FrameworkElement rpt = (FrameworkElement)DailyReportGD; // WPF2PDF.CreateAndOpenPDF(ref DailyReportGD, "BranchEmployeeInstitutions"); //if (DeductionsGrid.PrintCommand.CanExecute(DeductionsGrid)) //DeductionsGrid.PrintCommand.Execute(DeductionsGrid); FrameworkElement rpt = (FrameworkElement)DailyReportGD; PrintClass.Print(ref rpt); }
private void PrintReport(object sender, MouseButtonEventArgs e) { FrameworkElement rpt = (FrameworkElement)LayoutRoot; PrintClass.Print(ref rpt); }