Fixed logic for Shrinking Tables where the Bottom message needs to be adjusted.
This commit is contained in:
parent
804da7a3ca
commit
bb037ba06d
@ -934,7 +934,7 @@ namespace Volian.Print.Library
|
|||||||
// chk.SetRemoteGoto(ti.MyItemToID.MyProcedure.DisplayNumber.Replace("/", "_") + ".pdf", string.Format("ItemID={0}", ti.ToID));
|
// chk.SetRemoteGoto(ti.MyItemToID.MyProcedure.DisplayNumber.Replace("/", "_") + ".pdf", string.Format("ItemID={0}", ti.ToID));
|
||||||
// }
|
// }
|
||||||
// MyPageHelper.BottomContent = yLocation - Height;
|
// MyPageHelper.BottomContent = yLocation - Height;
|
||||||
// if (MyItemInfo.InList(39048)) Console.WriteLine("Here");
|
//if (MyItemInfo.InList(39048)) Console.WriteLine("Here");
|
||||||
retval = Rtf2Pdf.TextAt(cb, IParagraph, XOffset, yLocation, Width, 100, DebugInfo + string.Format(",YLines = {0}", YSize / SixLinesPerInch), yBottomMargin);
|
retval = Rtf2Pdf.TextAt(cb, IParagraph, XOffset, yLocation, Width, 100, DebugInfo + string.Format(",YLines = {0}", YSize / SixLinesPerInch), yBottomMargin);
|
||||||
ProfileTimer.Pop(profileDepth);
|
ProfileTimer.Pop(profileDepth);
|
||||||
//}
|
//}
|
||||||
@ -2134,8 +2134,9 @@ namespace Volian.Print.Library
|
|||||||
{ // Adjusted Continue Message Y Offset
|
{ // Adjusted Continue Message Y Offset
|
||||||
//DebugPagination.WriteLine("====>> {0},'{1}'", msg_yLocation, MyItemInfo.ShortPath);
|
//DebugPagination.WriteLine("====>> {0},'{1}'", msg_yLocation, MyItemInfo.ShortPath);
|
||||||
//msg_yLocation = (float) MyPageHelper.BottomContent - SixLinesPerInch; // Account for how low the lowest Item is on the page
|
//msg_yLocation = (float) MyPageHelper.BottomContent - SixLinesPerInch; // Account for how low the lowest Item is on the page
|
||||||
msg_yLocation = Math.Min(yBottomMargin +(docstyle.Layout.FooterLength ?? 0),(float) MyPageHelper.BottomContent - SixLinesPerInch);// RHM20150525 - Table Scrunch
|
float msg_yLocationOld =msg_yLocation= yBottomMargin + (docstyle.Layout.FooterLength ?? 0);
|
||||||
float msg_yLocationOld = yBottomMargin + (docstyle.Layout.FooterLength ?? 0);
|
if (MyPageHelper.BottomContent != null)
|
||||||
|
msg_yLocation = Math.Min(yBottomMargin + (docstyle.Layout.FooterLength ?? 0), (float)MyPageHelper.BottomContent - SixLinesPerInch);// RHM20150525 - Table Scrunch
|
||||||
if (msg_yLocationOld != msg_yLocation)
|
if (msg_yLocationOld != msg_yLocation)
|
||||||
_MyLog.WarnFormat("Continue Message Moved from {0} to {1} for {2}", msg_yLocationOld, msg_yLocation, this);// RHM20150525 - Table Scrunch
|
_MyLog.WarnFormat("Continue Message Moved from {0} to {1} for {2}", msg_yLocationOld, msg_yLocation, this);// RHM20150525 - Table Scrunch
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user