hi there,
I have a requirement to create a different header for each page.
Is there any good way, preferably by providing code styles.
Thanks
@qiychu Headers/footers in MS Word document are defined per section. So to define different headers/footers for each page, it is required to represent each page as a separate section. You can use Document.ExtractPages method to extract each page of the document as a separate document and than concatenate them back to a single document using Document.AppendDocument method. In this case each page in the resulting document will be represented as a separate section. Then you can define individual headers/footers for each section in the document:
https://docs.aspose.com/words/net/working-with-headers-and-footers/