From 5ae0fa8b1f71e17138b61d90a75101e62fa46121 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 18 Jan 2022 13:23:21 +0000 Subject: [PATCH] B2022-009: When using a landscape Word attachment, foldout page associated with it has header as landscape --- PROMS/Volian.Print.Library/PromsPrinter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index f18338f3..93d6586d 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -1234,8 +1234,11 @@ namespace Volian.Print.Library bool didFoldout = false; if (((mySection.MyDocStyle.StructureStyle.Style ?? 0) & E_DocStructStyle.UseSectionFoldout) != 0) { + // B2022-009: if doing a foldout & this is a landscape section, turn landscape off for the foldout + if (mySection.MyDocStyle.LandscapePageList) _MyHelper.IsLandscape = false; didFoldout = true; DoFoldoutPage(cb, "Word Document", _TextLayer, _MyHelper, 0, false); + if (mySection.MyDocStyle.LandscapePageList) _MyHelper.IsLandscape = true; // B2022-009: turn landscape back on for the foldout } if (this.MyReaderHelper != null) {