Fix for B2013-120 (pages printing landscape when they shouldn't)

This commit is contained in:
Kathy Ruffing 2013-06-27 12:50:43 +00:00
parent 2f479aed30
commit f77ebed326

View File

@ -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);
}
}
}