Adjustments for Margins, Page Lengths, Page Width and a few Page List Items

Fixed logic for Landscape Margins
This commit is contained in:
Rich 2016-10-24 16:27:32 +00:00
parent fb2225c59e
commit 47ddfe2857
3 changed files with 6 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1230,9 +1230,13 @@ namespace VEPROMS.CSLA.Library
// the + 1 in the next line allows for rounding.
if ((newWidth > (8.5f * 72)) && newWidth > newLength)
if (myDoc.PageSetup.Orientation != LBWdOrientation.wdOrientLandscape)
{
myDoc.PageSetup.Orientation = LBWdOrientation.wdOrientLandscape;
myDoc.PageSetup.BottomMargin = newBottom;
myDoc.PageSetup.RightMargin = 11 * 72 - newWidth;
}
else
myDoc.PageSetup.RightMargin = newRight;
myDoc.PageSetup.BottomMargin = newBottom;
myDoc.PageSetup.LeftMargin = newLeft;
myDoc.PageSetup.TopMargin = newTop;
}