B2016-255 Non-P/C PC prrocedures should not print in a subfolder. Corrects a problem creeated when Bug B2016-249 was fixed.

This commit is contained in:
Rich 2016-11-10 15:52:41 +00:00
parent baab4d1b1d
commit c837496f24

View File

@ -678,6 +678,8 @@ namespace VEPROMS
if (_MultiunitPdfLocation == "Unit ID")
newPDFPath = PDFPath + @"\" + MyProcedure.MyDocVersion.DocVersionConfig.Unit_ID;
if (newPDFPath == "") newPDFPath = Volian.Base.Library.VlnSettings.TemporaryFolder;
// B2016-255 Non-P/C PC proceduress need to remove that \0 that the code above addds
if (newPDFPath.EndsWith("\\0")) newPDFPath = newPDFPath.Substring(0, newPDFPath.Length - 2);
if (!Directory.Exists(newPDFPath))
Directory.CreateDirectory(newPDFPath);
return newPDFPath;