Dear All,
I was creating word document but i want to set header and footer.I am using POI XWPF here it is i have used createFooter(Enum type) mehtod when i try to use this method i got error from word document.My output file cant open here..the error message in word is
"The office open xml file temp.docx cannot be opened because problem with the contents" //Error says output my word file
my code is
hfPolicy.createFooter(
org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum.forString("Footer.")
);
i hardly find this solution.is this my source error or word error exactly i dont know.....
pls anyone help me out.....
thanks
Andavar.p