Hi,
I converted a .doc file into html using aspose. The .doc header footer contains some page number and page count fileds.
Now i am converting the .html file which i got earlier into .doc. I am using the below code for to insert header and footer into the .doc file. I got the header and footer in the .doc file but not the page number and page count fields.
Document doc=new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// thead which i got from the .html file
String thead ="1";
builder.moveToHeaderFooter(HeaderFooterType.HEADER_PRIMARY);
builder.insertHtml(thead);
doc.save("test.doc");
Now how can i retrieve my page number and page count fields in the .doc header footer.
Thanks,
chandrasekar.P