From 72be0531110c433727bf5e066195538b9379453f Mon Sep 17 00:00:00 2001 From: John Date: Thu, 9 Apr 2020 19:43:17 +0000 Subject: [PATCH] =?UTF-8?q?B2020-055=20=E2=80=93=20When=20Microsoft=20Edge?= =?UTF-8?q?=20is=20the=20default=20PDF=20viewer=20and=20you=20do=20a=20mer?= =?UTF-8?q?ge=20print,=20PROMS=20would=20exit=20with=20a=20null=20referenc?= =?UTF-8?q?e=20error=20but=20the=20PDF=20will=20still=20be=20displayed=20i?= =?UTF-8?q?n=20Microsoft=20Edge.=20We=20now=20handle=20the=20null=20refere?= =?UTF-8?q?nce.=20We=20suspect=20that=20it=E2=80=99s=20because=20the=20ver?= =?UTF-8?q?sion=20of=20.Net=20is=20pre-Microsoft=20Edge=20and=20does=20not?= =?UTF-8?q?=20recognize=20that=20app.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS User Interface/DlgPrintProcedure.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs index 53180a8f..6b4b1c81 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs @@ -1134,7 +1134,8 @@ namespace VEPROMS { if (_MergedPfd.MergedPdfs != null && _MergedPfd.MergedPdfs.Count > 0) { - System.Diagnostics.Process sdp = System.Diagnostics.Process.Start(_MergedPfd.MergedFileName); + System.Diagnostics.Process sdp = System.Diagnostics.Process.Start(_MergedPfd.MergedFileName); + if (sdp != null) // B2020-055 if the current .NET version does not recognize the program used to display the PDF, it will return a NULL (ex. Microsoft Edge) sdp.WaitForInputIdle(); } }