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

@ -1229,10 +1229,14 @@ namespace VEPROMS.CSLA.Library
{ {
// the + 1 in the next line allows for rounding. // the + 1 in the next line allows for rounding.
if ((newWidth > (8.5f * 72)) && newWidth > newLength) if ((newWidth > (8.5f * 72)) && newWidth > newLength)
if(myDoc.PageSetup.Orientation != LBWdOrientation.wdOrientLandscape) if (myDoc.PageSetup.Orientation != LBWdOrientation.wdOrientLandscape)
{
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.RightMargin = newRight;
myDoc.PageSetup.BottomMargin = newBottom;
myDoc.PageSetup.LeftMargin = newLeft; myDoc.PageSetup.LeftMargin = newLeft;
myDoc.PageSetup.TopMargin = newTop; myDoc.PageSetup.TopMargin = newTop;
} }