Implement ContinueOnly format flag on RNOTypes (for Catawba and McGuire)
This commit is contained in:
parent
8fa25198e6
commit
8b3f72d3f7
@ -859,7 +859,12 @@ namespace Volian.Print.Library
|
||||
OutputOtherPageSteps(cb, YTopMost, yPageStart, yTopMargin, yBottomMargin);
|
||||
DocStyle docstyle = MyItemInfo.MyDocStyle;
|
||||
string myMsg = docstyle.Continue.Bottom.Message;
|
||||
if (myMsg != null && myMsg != "")
|
||||
|
||||
// a format flag exists that states to only put a BOTTOM message if it is a certain type (RNO)
|
||||
// check for this....
|
||||
bool RNOContinueOnly = MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[40].ContinueOnly;
|
||||
bool doBottom = !RNOContinueOnly || (MyItemInfo.IsInRNO && RNOContinueOnly);
|
||||
if (doBottom && myMsg != null && myMsg != "")
|
||||
{
|
||||
myMsg = ReplaceStepBottomContinue(myMsg);
|
||||
float msg_yLocation = 0;
|
||||
@ -899,7 +904,18 @@ namespace Volian.Print.Library
|
||||
break;
|
||||
}
|
||||
if (!PageBreakOnStep)
|
||||
MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0, msg_yLocation, docstyle.Continue.Bottom.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
|
||||
{
|
||||
float xoffB = 0;
|
||||
if (RNOContinueOnly)
|
||||
{
|
||||
int colR = int.Parse(MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColRTable.Split(",".ToCharArray())[MyItemInfo.ColumnMode]);
|
||||
xoffB = colR + docstyle.Layout.LeftMargin + docstyle.Continue.Bottom.Margin ?? 0;
|
||||
}
|
||||
else
|
||||
xoffB = docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0;
|
||||
//MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0, msg_yLocation, docstyle.Continue.Bottom.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
|
||||
MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, xoffB, msg_yLocation, docstyle.Continue.Bottom.Font);
|
||||
}
|
||||
}
|
||||
if (PageBreakOnStep) MyPageHelper.BottomMessage = null;
|
||||
cb.PdfDocument.NewPage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user