diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 76453730..220b4cd5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -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); } - } }