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.
@ -1230,9 +1230,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user