Creating a word document from a template dynamically using values from java objects

后端 未结 3 1084
野性不改
野性不改 2021-01-01 06:08

I want to create a word document from an HTML page. I am planning to get the values on the HTML page and then pass these values to a document template. I have used JSOUP to

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 06:30

    I found something very Interesting and simple. We just need to create a simple .xml template for the document we want to create and then programmatically change the contents of the xml file and save it as a ms word document.

    You can find the xml template and the code here.

提交回复
热议问题