From 13d4aa052f158ee1bcef13ca7fec26af81566f27 Mon Sep 17 00:00:00 2001 From: tdx Date: Thu, 25 Dec 2025 09:27:39 +0000 Subject: [PATCH] SVN r1084 SVN-Revision: r1084 --- 插件库/Lskj.AutoCreatWord/CreateWordUtil.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/插件库/Lskj.AutoCreatWord/CreateWordUtil.cs b/插件库/Lskj.AutoCreatWord/CreateWordUtil.cs index 2b29adb..e2edaed 100644 --- a/插件库/Lskj.AutoCreatWord/CreateWordUtil.cs +++ b/插件库/Lskj.AutoCreatWord/CreateWordUtil.cs @@ -106,10 +106,6 @@ namespace Lskj.AutoCreatWord } if (!string.IsNullOrEmpty(menuTempPath) && File.Exists(menuTempPath)) { - if (hasMainTemp) - { - document.LastSection.PageSetup.DifferentFirstPageHeaderFooter = true; - } Document document3 = new Document(); document3.LoadFromFile(menuTempPath); if (!string.IsNullOrEmpty(menuTempArray)) @@ -223,6 +219,10 @@ namespace Lskj.AutoCreatWord } } } + if (hasMainTemp) + { + firstSection.PageSetup.DifferentFirstPageHeaderFooter = true; + } } } catch (Exception ex) @@ -1675,7 +1675,7 @@ namespace Lskj.AutoCreatWord HeaderFooter headerFooter = sourceSection.HeadersFooters[headerFooterType]; if (headerFooter != null && headerFooter.ChildObjects != null && headerFooter.ChildObjects.Count > 0) { - //targetSection.HeadersFooters[headerFooterType].LinkToPrevious = false; + targetSection.HeadersFooters[headerFooterType].LinkToPrevious = true; targetSection.HeadersFooters[headerFooterType].ChildObjects.Clear(); foreach (DocumentObject obj in headerFooter.ChildObjects) {