From 6859ee762366115573866f82a58fb11f3bc9feaa Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 27 Sep 2012 11:25:23 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/PromsPrinter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index cf1637e7..3c131cbf 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -275,7 +275,7 @@ namespace Volian.Print.Library { foreach (SectionInfo mySection in myProcedure.Sections) { - if (mySection.MyContent.Number.ToUpper() == "FOLDOUT") + if (mySection.MyContent.Number.ToUpper() == "FOLDOUT") // || mySection.MyContent.Text.ToUpper() == "FOLDOUT") { _MyFoldoutSection = mySection; string foldoutPdf = PrintProcedureOrFoldout(myProcedure, true, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\Foldout.pdf"); @@ -340,6 +340,7 @@ namespace Volian.Print.Library { if ((mySection.MyContent.Number.ToUpper() == "FOLDOUT") != doingFoldout) continue; + //if ((mySection.MyContent.Number.ToUpper() == "FOLDOUT") || mySection.MyContent.Text.ToUpper() == "FOLDOUT" ) != doingFoldout) continue; SectionConfig sc = mySection.MyConfig as SectionConfig; #if AllButFirstPage if (_MyHelper != null && mySection.IsStepSection && mySection.MyPrevious != null && mySection.MyPrevious.IsStepSection) @@ -420,7 +421,7 @@ namespace Volian.Print.Library CreateWordDocPdf(cb, mySection, ref readerWord, ref myPdfFile); } } - if (_MyHelper.BackgroundFile != null) + if (_MyHelper != null && _MyHelper.BackgroundFile != null) { _MyHelper.MySvg = null; while (cb.PdfWriter.CurrentPageNumber <= _MyHelper.BackgroundPageCount)