Removed commented code.

Corrected Bottom Margin calc associated with DSS_PrintSectOnFirst
Corrected DrawRuler to support DSS_PrintSectOnFirst
This commit is contained in:
Rich
2013-12-11 12:08:06 +00:00
parent efc5ed84c4
commit 1dd61e449d
3 changed files with 11 additions and 3 deletions

View File

@@ -759,7 +759,8 @@ namespace Volian.Print.Library
if ((MyItemInfo.MyActiveSection.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PrintSectOnFirst) == E_DocStructStyle.DSS_PrintSectOnFirst)
{
yTopMargin = _PointsPerPage - (float)MyItemInfo.MyActiveSection.MyDocStyle.Layout.TopMargin + MyPageHelper.PrintedSectionPage;
yBottomMargin = Math.Max(0, yTopMargin - (float)MyItemInfo.MyActiveSection.MyDocStyle.Layout.PageLength);
MyPageHelper.YTopMargin = yTopMargin;
yBottomMargin = Math.Max(0, _PointsPerPage - (float)MyItemInfo.MyActiveSection.MyDocStyle.Layout.TopMargin - (float)MyItemInfo.MyActiveSection.MyDocStyle.Layout.PageLength);
}
}