diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 231c2eaa..f98f8fbc 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -533,6 +533,12 @@ namespace Volian.Print.Library NxtRCT = rct; MyContentByte.PdfDocument.NewPage(); } + private static bool _BaselineTesting = false; // Is the baseline being run (/P Commandline Parameter) + public static bool BaselineTesting + { + get { return PromsPrinter._BaselineTesting; } + set { PromsPrinter._BaselineTesting = value; } + } private iTextSharp.text.Rectangle NxtRCT = PageSize.LETTER; private SectionInfo GetNextSection(SectionInfo currentSection) { @@ -2329,8 +2335,9 @@ namespace Volian.Print.Library try { FileInfo fi = new FileInfo(MyPdfFile); - if (fi.Length == 0) // B2017-218 Handle invalid word sections + if (fi.Length == 0 ) // B2017-218 Handle invalid word sections { + if(!PromsPrinter.BaselineTesting) //B2018-071 Output a message box unless baseline testing is being performed. MessageBox.Show(si.DisplayNumber + " " + si.DisplayText + " is not valid", "Invalid Word Section", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; }