Free Support Forum - aspose.com

Pagenum field display in roman numerals

Hi - could you show me the line of code to add a PAGENUM field that will display in roman numerals using a document builder - thanks, Paul.

Hi Paul,

Thanks for your inquiry. Sure please see the code snippet below:

Document doc = new Document();<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertField(@"PAGE \*Roman");

doc.UpdatePageLayout();

doc.Save("Document Out.doc");

If you have any further queries, please feel free to ask.

Thanks,