diff --git a/CS/RichEditAPISample/CodeExamples/HeaderAndFooter.cs b/CS/RichEditAPISample/CodeExamples/HeaderAndFooter.cs index 5435506..c64c331 100644 --- a/CS/RichEditAPISample/CodeExamples/HeaderAndFooter.cs +++ b/CS/RichEditAPISample/CodeExamples/HeaderAndFooter.cs @@ -70,7 +70,7 @@ static void ModifyFooter(Document document) DocumentRange range = myFooter.InsertText(myFooter.CreatePosition(0), " PAGE NUMBER "); Field fld = myFooter.Fields.Create(range.End, "PAGE \\* ARABICDASH"); myFooter.Fields.Update(); - firstSection.EndUpdateHeader(myFooter); + firstSection.EndUpdateFooter(myFooter); // Display the footer of the HeaderFooterType.First type on the first page. firstSection.DifferentFirstPage = true; #endregion #ModifyFooter