SVN r1084

SVN-Revision: r1084
This commit is contained in:
tdx
2025-12-25 09:27:39 +00:00
parent e6483dc91e
commit 13d4aa052f
@@ -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)
{