I am trying to create a DOCX document using latest Aspose.Words version. When I open the same in Word 2007 the page number values are not getting displayed Instead its showing the fields name itself as PAGE & NUMPAGES.(Code is attached below)
Please suggest what needs to be done.
builder.MoveToHeaderFooter(HeaderFooterType.FooterFirst);
builder.Font.ClearFormatting();
builder.Font.Size = 12;
builder.Font.Color = System.Drawing.Color.Black;
builder.Font.Name = "Times New Roman";
builder.Write("Page ");
builder.InsertField("PAGE", "");
builder.Write(" of ");
builder.InsertField("NUMPAGES", "");
builder.CurrentParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Left;