Page 1 of 1

create Word from Template and query data to OpenXML

PostPosted: Wed Jun 02, 2021 6:35 am
by Author
Hi,

I am newby for docx4j and I really need to know sample code fot my requirement as below:

1. We havce Word.docx file which prepared to be template and store as file.docx on server
2. We bind Word.docx file with OpenXML file
3. We need to query data from DB then convert to Open XML file and sore on server
4. Create new Word.docx according to word + xml (from no. 1,2,3) thenconvert to pdf.

If there is anyone know the sample or remember the topic in forum about this, please let me know.

Thank you.

Re: create Word from Template and query data to OpenXML

PostPosted: Wed Jun 02, 2021 7:06 am
by jason
In 2 and 3, did you mean "xml" where you wrote "Open XML"?

If you mean XML, this is easy to answer. Do you care what schema the XML matches?