private void CreatePatientTifFile(string reportNo) { List <YellowstonePathology.Business.Patient.Model.SVHBillingData> sVHBillingDataList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientImportDataList(reportNo); if (sVHBillingDataList.Count != 0) { YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(reportNo); this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(sVHBillingDataList[0]); svhBillingDocument.SaveAsTIF(orderIdParser); } )); } }
private void ButtonPrint_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(this.m_MasterAccessionNo); YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(this.m_SVHBillingData); //svhBillingDocument.SaveAsTIF(orderIdParser); PrintDialog dialog = new PrintDialog(); var doc = svhBillingDocument.Document.DocumentPaginator; for (int i = 0; i < doc.PageCount; i++) { dialog.PrintVisual(doc.GetPage(i).Visual, "Page " + i); } MessageBox.Show("Your document has been sent to the printer."); }
private void CreatePatientTifFile(string reportNo) { List<YellowstonePathology.Business.Patient.Model.SVHBillingData> sVHBillingDataList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientImportDataList(reportNo); if (sVHBillingDataList.Count != 0) { YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(reportNo); this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(sVHBillingDataList[0]); svhBillingDocument.SaveAsTIF(orderIdParser); } )); } }