Hi Kishan,
Thank you for your interest in Syncfusion products.
It is possible to print page number and total number of pages in the document using the FieldPage and FieldNumPages. Please refer the below code snippet to do so:
[C#]
WParagraph footerPar = new WParagraph(doc);
// Add page and Number of pages field to the document.
footerPar.AppendText("Page ");
//To insert page number
footerPar.AppendField("Page", FieldType.FieldPage);
footerPar.AppendText(" of ");
//To insert total number of pages
footerPar.AppendField("Y", FieldType.FieldNumPages);
section1.HeadersFooters.Footer.Paragraphs.Add(footerPar);
Here is the simple sample for your reference:
'>http://websamples.syncfusion.com//samples/DocIO.Windows/F75972/main.htm">http://websamples.syncfusion.com//samples/DocIO.Windows/F75972/main.htm Please try this and let us know if this helps you.
Best Regards,
Bhuvana