This commit is contained in:
Kathy Ruffing 2013-01-09 13:31:28 +00:00
parent 43d5649a0f
commit c2a6d3b610
3 changed files with 3 additions and 1 deletions

View File

@ -776,7 +776,9 @@ namespace VEPROMS.CSLA.Library
float oldRight = myDoc.PageSetup.RightMargin;
float oldHeight = myDoc.PageSetup.PageHeight;
float oldWidth = myDoc.PageSetup.PageWidth;
float newRight = Math.Max(0, oldWidth - (newWidth + newLeft));
// in the following line, the 2 accounts for a difference between how word treats margin versus
// ours, we are not exactly sure why.
float newRight = Math.Max(0, oldWidth - (newWidth + 2));
float newBottom = Math.Max(0, oldHeight - (newLength + newTop + 1));
//Console.WriteLine("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}", newTop, newLeft, newLength, newWidth, oldTop, oldLeft, oldBottom, oldRight,oldHeight,oldWidth);
if (printingMode)

Binary file not shown.

Binary file not shown.