Fix for B2013-120 (pages printing landscape when they shouldn't)
This commit is contained in:
parent
2f479aed30
commit
f77ebed326
@ -961,7 +961,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (myDoc.PageSetup.BottomMargin != 9999999)
|
||||
{
|
||||
// the + 1 in the next line allows for rounding.
|
||||
if (newWidth > newLength)
|
||||
if ((newWidth > (8.5f * 72)) && newWidth > newLength)
|
||||
if(myDoc.PageSetup.Orientation != LBWdOrientation.wdOrientLandscape)
|
||||
myDoc.PageSetup.Orientation = LBWdOrientation.wdOrientLandscape;
|
||||
myDoc.PageSetup.BottomMargin = newBottom;
|
||||
@ -1225,6 +1225,5 @@ namespace VEPROMS.CSLA.Library
|
||||
//return MyApp.CreatePDF(VlnSettings.TemporaryFolder + "\\" + fileName + ".pdf", openPdf);
|
||||
return MyApp.CreatePDF(fileName + ".pdf", openPdf);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user