When the word template having the header and footer while opening the modified template in word it works perfectly fine. but when I open it in Pdf it is adding couple of lines at the beginning and end of the page in generated pdf document.
Please suggest how i can overcome thos issue.
Another query i am having regarding populating table in word doc. i am using
doc.getMailMerge().executeWithRegions("Student", student); to populate the table. here in executeWithRegions
method it takes resultset as an argument. can we populate the table without using resulset.