From c040b742b20b622533c0f0d2104fd1f213195f77 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 22 Feb 2018 19:12:27 +0000 Subject: [PATCH] B2018-039 Fixes issue where you could not print a second procedure if you left a procedure open in the PDF view. Bug was a result of fix for supplement information (B2018-029) --- PROMS/VEPROMS User Interface/frmPDFStatusForm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmPDFStatusForm.cs b/PROMS/VEPROMS User Interface/frmPDFStatusForm.cs index 99be9410..9cc56998 100644 --- a/PROMS/VEPROMS User Interface/frmPDFStatusForm.cs +++ b/PROMS/VEPROMS User Interface/frmPDFStatusForm.cs @@ -158,7 +158,8 @@ namespace VEPROMS DateTime tStart = DateTime.Now; if (!CancelStop) PromsPrinter.ClearTransPageNumProblems(); // B2018-029: delete any pdf files related to printing supplemental information facing pages: - string[] filePaths = System.IO.Directory.GetFiles(Volian.Base.Library.VlnSettings.TemporaryFolder, "*.pdf"); + // B2018-039 Delete only pdf files that begin with "SupInof" + string[] filePaths = System.IO.Directory.GetFiles(Volian.Base.Library.VlnSettings.TemporaryFolder, "SupInfo*.pdf"); foreach (string filePath in filePaths) System.IO.File.Delete(filePath); do @@ -252,4 +253,4 @@ namespace VEPROMS btnCancel.Enabled = false; } } -} \ No newline at end of file +}