//批量导出报告 private void BatchOutputReport_Click(object sender, RoutedEventArgs e) { MyCustomControlLibrary.MMessageBox.ShowLoading(MyCustomControlLibrary.MMessageBox.LoadType.Circle, "正在打印", new Point(0, 0), new Size(0, 0), "", System.Windows.Controls.Orientation.Vertical, "#ffffff", 3); string activityId = Uid; Report rp = new Report(); List <StudentCheckData> studentCheckDatas = dbUtill.GetStudentCheckDatasByActivityId(activityId); foreach (StudentCheckData studentCheckData in studentCheckDatas) { if (studentCheckData.jsonContent.Trim().Length > 1) { rp.checkData = studentCheckData; rp.PrintServiceNotPreview(); } } MyCustomControlLibrary.MMessageBox.MClosed(); System.Windows.MessageBox.Show("打印完毕", "提示"); }