B2023-022, B2023-023 PROMS was prematurely deleting a temporary pdf file. The file will be deleted once the entire procedure is finished printing

This commit is contained in:
John Jenko 2023-03-08 19:07:07 +00:00
parent 48d395f5be
commit eb48009f5c

View File

@ -898,11 +898,14 @@ namespace VEPROMS.CSLA.Library
fs.Read(buf, 0, buf.Length);
fs.Close();
try
{
pdfFile.Delete();
}
catch { }
// B2023-022 & B2023-023 commented out the deletion of the temporary Word section PDF file
// These files are deleted when the procedure pdf file is closed after being generated.
// PROMS was crashing because it could not find these temporary files to delete.
//try
//{
// pdfFile.Delete();
//}
//catch { }
using (Document doc = docInfo.Get())
{