Link To previous Footer Sections Not Work

@alexey.noskov I want use link to previous property using below code

foreach (Section section in doc.Sections)
{
    if (i != 0)//Condition for omitting first section
    {
        foreach (HeaderFooter hf in section.GetChildNodes(NodeType.HeaderFooter, true))
        {
            if (hf.IsLinkedToPrevious == false)
            {
                hf.IsLinkedToPrevious = true;
            }
        }
    }
    i++;
}

above code work only header section in footer section are reflected out put document Please verify document
Document.docx (27.2 KB)

@Nagasrinu As I can see the code works as expected:

Header its work fine but footer not working some documents

@Nagasrinu Unfortunately, I do not see the problem in the output document generated on my side. the footer also works as expected too.