Hi,
Thanks for your information.
After testing the issue#2 with the latest
Spire.Doc Pack(hot fix) Version:8.2.9 and following code, I didn't notice there is any issues. The page number is correct. Attached is the result file on my side.
- Code: Select all
Document doc = new Document();
Section section = doc.AddSection();
Paragraph para = section.AddParagraph();
para.AppendText("Page ");
para.AppendField("NumPage", FieldType.FieldPage);
para.AppendText("/");
para.AppendField("NumTotPages", FieldType.FieldNumPages);
para.ApplyStyle(BuiltinStyle.Normal);
doc.IsUpdateFields = true;
doc.SaveToFile("18752.docx", FileFormat.Docx);
Do you use the same code and version? If not, please share the code. If so, please tell us the OS and Region information(e.g. Win7 64bit, China/Chinese) for further investigation.
Sincerely,
Betsy
E-iceblue support team
Login to view the files attached to this post.