We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

VisitFootnoteStart not visited

I try to use a Visitor to chane something in my Footnotes. But the “VisitFootnoteStart” is never called.

This is my Visitor:

using Aspose.Words;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AsposeTools.Visitors
{
    class TestVisitor : DocumentVisitor
    {
        public override VisitorAction VisitFootnoteStart(Footnote footnote)
        {
            return base.VisitFootnoteStart(footnote);
        }

        public override VisitorAction VisitFootnoteEnd(Footnote footnote)
        {
            return base.VisitFootnoteEnd(footnote);
        }


    }
}

TestFootnote.docx (19.0 KB)

I attached my Test Document.

@Holger_Schulze Your test document does not have footnotes. It has header and footer. Please try using VisitHeaderFooterStart and VisitHeaderFooterEnd methods.
Also you can use DocumentExplorer demo to investigate the document structure.

Thanks a lot Alexey that helped.