From f77ebed326eb56d27220e35df90fa0037223327b Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 27 Jun 2013 12:50:43 +0000 Subject: [PATCH] Fix for B2013-120 (pages printing landscape when they shouldn't) --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } - } }