Adjusted the y position after printing a End Message so that the next section (set to continuous pagination) will print below the End Message.
This commit is contained in:
parent
234f55ea77
commit
06df9a9233
@ -1513,9 +1513,10 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
msg_yLocation = yTopMargin - (float)(docstyle.End.Flag * SixLinesPerInch);
|
msg_yLocation = yTopMargin - (float)(docstyle.End.Flag * SixLinesPerInch);
|
||||||
}
|
}
|
||||||
|
float adjMsgY = 0;
|
||||||
if (docstyle.End.Flag < 0) // Adjust this many lines down the page.
|
if (docstyle.End.Flag < 0) // Adjust this many lines down the page.
|
||||||
{
|
{
|
||||||
float adjMsgY = (float)(-docstyle.End.Flag * SixLinesPerInch);
|
adjMsgY = (float)(-docstyle.End.Flag * SixLinesPerInch);
|
||||||
if (msg_yLocation - adjMsgY > docstyle.Layout.FooterLength) msg_yLocation = msg_yLocation - adjMsgY;
|
if (msg_yLocation - adjMsgY > docstyle.Layout.FooterLength) msg_yLocation = msg_yLocation - adjMsgY;
|
||||||
}
|
}
|
||||||
if (myMsg.Contains("{Section Number}")) myMsg = myMsg.Replace("{Section Number}", MyItemInfo.ActiveSection.DisplayNumber);
|
if (myMsg.Contains("{Section Number}")) myMsg = myMsg.Replace("{Section Number}", MyItemInfo.ActiveSection.DisplayNumber);
|
||||||
@ -1538,7 +1539,7 @@ namespace Volian.Print.Library
|
|||||||
xpos = Math.Max(xpos, XOffsetBox + (float)docstyle.Layout.LeftMargin);
|
xpos = Math.Max(xpos, XOffsetBox + (float)docstyle.Layout.LeftMargin);
|
||||||
MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, xpos, msg_yLocation, docstyle.End.Font);
|
MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, xpos, msg_yLocation, docstyle.End.Font);
|
||||||
MyPageHelper.MyGaps.Add(new Gap(msg_yLocation, msg_yLocation - MyPageHelper.BottomMessage.Height));
|
MyPageHelper.MyGaps.Add(new Gap(msg_yLocation, msg_yLocation - MyPageHelper.BottomMessage.Height));
|
||||||
yPageStart -= MyPageHelper.BottomMessage.Height;
|
yPageStart -= (MyPageHelper.BottomMessage.Height + adjMsgY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user