Page 1 of 1

Excel export from html table

PostPosted: Sat Oct 22, 2016 9:35 am
by alosatriani
I need to create an Excel file with html table using doc4j. I have previously use this but for create Word Document. I can't find a good example for creating a excel out of a html table... Any ideas?

Re: Excel export from html table

PostPosted: Thu Oct 27, 2016 6:41 pm
by jason
As you may have noticed, https://github.com/plutext/docx4j-Impor ... n/java/org contains source trees for docx and pptx, but not xlsx.

You could look at https://github.com/plutext/docx4j-Impor ... .java#L917 and
TableHelper.java to see how the XHTML input is interpreted.

Then you'll need some xlsx4j knowledge to turn that into corresponding cell content.