Added logic for grouping titles and to rename the “Procedure Steps” section title to “OPERATOR ACTIONS” on the auto table of contents

Fixed a problem where the auto table of contents was getting wrong page numbers when the procedure had duplex foldouts and printed with blank pages (V.C. Summer)
This commit is contained in:
2016-03-08 21:02:03 +00:00
parent 0b3e70fd6d
commit d432a980d7
2 changed files with 35 additions and 14 deletions

View File

@@ -272,7 +272,9 @@ namespace Volian.Print.Library
if (!CreatingFoldoutPage)
DrawRuler(writer.DirectContent);
}
if (MySection.MyDocStyle.StructureStyle.Style==null || (MySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountInTabOfCont) == 0)
// added the check for onBlankPage and Foldouts to fix bug found in V.C. Summer auto table of contents - 03/08/2016
if (!onBlankPage && (MySection.MyDocStyle.StructureStyle.Style==null || (MySection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DontCountInTabOfCont) == 0) &&
!(MySection.ActiveFormat.PlantFormat.FormatData.PrintData.SectionLevelFoldouts && MySection.DisplayNumber.ToUpper() == "FOLDOUT"))
CurrentTOCPageNumber++;
if (MySection.ActiveFormat.PlantFormat.FormatData.SectData.PrintPhoneList)
{