B2019-165 Added a check box on the automation tab to allow user to turn off the printing of a foldout page on the last page of a Word document that does not include foldouts (Byron/Braidwood)
Code cleanup, found a missed instance of a check for “FOLDOUT” as section number – corrected so that it using the Section_IsFoldout method instead
This commit is contained in:
@@ -2215,8 +2215,9 @@ namespace VEPROMS.CSLA.Library
|
||||
int indxOfFoldout = 0;
|
||||
foreach (ItemInfo sect in MyProcedure.Sections)
|
||||
{
|
||||
SectionConfig scfe = sect.MyConfig as SectionConfig;
|
||||
if (sect.ItemID == fldid) return indxOfFoldout;
|
||||
if (sect.DisplayText.ToUpper().StartsWith("FOLDOUT")) indxOfFoldout++;
|
||||
if (scfe.Section_IsFoldout == "Y") indxOfFoldout++; // C2019-042 Section_ISFoldout will check for section number "FOLDOUT" or if check box is checked
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user