Fixed a Westinghouse print issue with procedure HSD-101 when the sub section numbers and titles were printing in the page header

This commit is contained in:
John Jenko 2014-03-21 19:48:41 +00:00
parent 9a0ffef782
commit 664d41fdb4
2 changed files with 6 additions and 4 deletions

View File

@ -35,6 +35,7 @@ namespace Volian.Print.Library
if (MyItemInfo.IsSection && MyParent != null && MyParent.MyItemInfo.IsSection && (MyItemInfo as SectionInfo).IsSeparatePagination()) if (MyItemInfo.IsSection && MyParent != null && MyParent.MyItemInfo.IsSection && (MyItemInfo as SectionInfo).IsSeparatePagination())
{ {
ShowPageBreak(1, "Page Break between separate sections", "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak); ShowPageBreak(1, "Page Break between separate sections", "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak);
if (MyItemInfo.MyPrevious != null) // add if statement to fix Westinghouse print issue 3-21-2014
return 1; return 1;
} }
// if the EndForSingle format flag is set to false, then we do not print an End message if the section // if the EndForSingle format flag is set to false, then we do not print an End message if the section

View File

@ -1426,8 +1426,9 @@ namespace Volian.Print.Library
if (!MyPageHelper.MyParagraphs.ContainsKey(itemInfo.ItemID)) MyPageHelper.MyParagraphs.Add(itemInfo.ItemID, this); if (!MyPageHelper.MyParagraphs.ContainsKey(itemInfo.ItemID)) MyPageHelper.MyParagraphs.Add(itemInfo.ItemID, this);
// if this a continuous subsection, refresh the style. // if this a continuous subsection, refresh the style.
if (itemInfo.IsStepSection && !(itemInfo as SectionInfo).IsSeparatePagination() && itemInfo.MyParent.IsSection) // This was commented out to fix a Westinghouse print issue 3-21-2014, orignally put in for Farley
RefreshDocStyle(); //if (itemInfo.IsStepSection && !(itemInfo as SectionInfo).IsSeparatePagination() && itemInfo.MyParent.IsSection)
// RefreshDocStyle();
XOffset = xoff; XOffset = xoff;
if (!MyItemInfo.IsStep && !MyItemInfo.IsStepSection) if (!MyItemInfo.IsStep && !MyItemInfo.IsStepSection)