diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 98cd1602..27a773c6 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -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) diff --git a/PROMS/fmtxml/WST2all.xml b/PROMS/fmtxml/WST2all.xml index 914e9caf..cd538ac9 100644 Binary files a/PROMS/fmtxml/WST2all.xml and b/PROMS/fmtxml/WST2all.xml differ diff --git a/PROMS/fmtxml/wst2.svg b/PROMS/fmtxml/wst2.svg index 29cf85f9..3e14d897 100644 Binary files a/PROMS/fmtxml/wst2.svg and b/PROMS/fmtxml/wst2.svg differ