diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index efa82702..4507e604 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -1663,7 +1663,9 @@ namespace VEPROMS.CSLA.Library { //return MyApp.CreatePDF(@"C:\Temp\" + fileName + ".pdf", openPdf); //return MyApp.CreatePDF(VlnSettings.TemporaryFolder + "\\" + fileName + ".pdf", openPdf); - return MyApp.CreatePDF(fileName + ".pdf", openPdf, DebugStatus); + if (!fileName.ToUpper().EndsWith(".PDF")) // C2018-019 only allow one .pdf extension + fileName += ".pdf"; + return MyApp.CreatePDF(fileName, openPdf, DebugStatus); } } }