This commit is contained in:
parent
43d5649a0f
commit
c2a6d3b610
@ -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.
Loading…
x
Reference in New Issue
Block a user