How do I do heading numbering using aspose.words

Received : 2007/11/19 10:58:18
Message : using vb .net

This message was posted using Aspose.Live 2 Forum

Thanks for your inquiry. But it is not quite clear for me what you mean. If you mean page numbers then you can use the following code snippet.

' Insert page numbering text here.
' It uses PAGE and NUMPAGES fields to autocalculate current page number and total number of pages.
builder.Write("Page ")
builder.InsertField("PAGE", "")
builder.Write(" of ")
builder.InsertField("NUMPAGES", "")

Also see the following link.
Best regards.

I am trying to put section numbers not page numbers. How do I create section numbers ?

Thanks for your inquiry. I think you should use the following code snippet.

builder.InsertField("SECTION", "")

I hope that this will help you.
Best regards.