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) {