Consider whether an ‘End’ message is printed when determining page breaks

Added error log message ‘End Message LOW on page’, if the end message locates on the bottom line of page list box.
This commit is contained in:
2014-09-25 16:38:03 +00:00
parent c79e514f3b
commit eac2037172
2 changed files with 11 additions and 8 deletions

View File

@@ -1286,6 +1286,7 @@ namespace Volian.Print.Library
if (myMsg.Contains("%-12s"))
myMsg = myMsg.Replace("%-12s", MyItemInfo.MyProcedure.DisplayNumber.PadRight(12));
float xpos = 0;
if (yTopMargin-docstyle.Layout.PageLength>=msg_yLocation) _MyLog.WarnFormat("End Message LOW on page: {0}, {1}, {2}, Page {3}",msg_yLocation, MyItemInfo.ItemID, MyItemInfo.ShortPath, MyPageHelper.CurrentPageNumber+1);
if ((docstyle.End.Margin ?? 0) != 0)
{
xpos = (float)docstyle.Layout.LeftMargin + (float)docstyle.End.Margin;