diff --git a/PROMS/Volian.Print.Library/Rtf2Pdf.cs b/PROMS/Volian.Print.Library/Rtf2Pdf.cs index ee770ac8..43fdb140 100644 --- a/PROMS/Volian.Print.Library/Rtf2Pdf.cs +++ b/PROMS/Volian.Print.Library/Rtf2Pdf.cs @@ -32,6 +32,9 @@ namespace Volian.Print.Library } public class Rtf2Pdf { + #region Log4Net + private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + #endregion private string _Rtf; public string Rtf @@ -311,6 +314,11 @@ namespace Volian.Print.Library myColumnText.SetSimpleColumn(left, top, left + width, yBottomMargin); //if (textLayer != null) cb.BeginLayer(textLayer); // RHM20150507 Table Scrunch // C2018-004 create meta file for baseline compares + if (top + GridTopAdjust > 792) // B2019-110 Table continued on the next page - off the top of page + { + _MyLog.ErrorFormat("\r\n===> Table Printing Off the Top of Page"); + Volian.Base.Library.BaselineMetaFile.WriteLine("## Error - Grid Off the Top of Page"); + } Volian.Base.Library.BaselineMetaFile.WriteLine("GD left={0} top={1} right={2} bottom={3} Mygrid.ItmID={4}", left, top + GridTopAdjust, right, bottom, myGrid.ItemID); myGrid.ToPdf(myColumnText, left, top + GridTopAdjust); //if (textLayer != null) cb.EndLayer(); // RHM20150507 Table Scrunch