Problem layout.GetStartPageIndex and footNote

If i call layout.GetStartPageIndex footNote Not inserted in document

var nbPage = layout.GetStartPageIndex(cell.FirstParagraph.FirstChild);
cell.FirstParagraph.InsertAfter(noteModel.footNote, cell.FirstParagraph.Runs[0]);
Hi there,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the expected output Word file.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.
Thank you for your reply
I found the solution, I must add the line: doc.UpdatePageLayout();
after inserting the footnote
Hi there,

Thanks for your feedback. It is nice to hear from you that you have found the solution of your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.