Adjustments for Margins, Page Lengths, Page Width and a few Page List Items
Fixed logic for Landscape Margins
This commit is contained in:
parent
fb2225c59e
commit
47ddfe2857
Binary file not shown.
Binary file not shown.
@ -1229,10 +1229,14 @@ 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)
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user