Apache POI WP

HeaderStories headerStore = new HeaderStories(doc);
String header = headerStore.getHeader(pageNumber);

Aspose.Words

builder.moveToHeaderFooter(HeaderFooterType.HEADER_FIRST);

builder.write("Aspose.Words Header");

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jun 6, 2014 at 6:42 AM by shoaibkhan, version 2