This commit is contained in:
Kathy Ruffing 2012-09-27 11:25:23 +00:00
parent b62a1ce79c
commit 6859ee7623

View File

@ -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)