How can I add embedded equations to docx files by using Apache POI?
问题 I want to create a docx file programatically via Apache POI. I want to add some mathematical equations in some lines. How can I do this in a way that when the user open the docx file it see that equations as docx equation form. I mean I don't want simply give a background colour to that run, I want when the user does double click on my equation MS-Word open it in equation forms. Thanks in advance 回答1: This is not really complicated: import java.io.FileOutputStream; import org.apache.poi.xwpf