Cosima,

unfortunately it looks like you would need to go via XSSFSheet --> 
getCTWorkbook()

https://poi.apache.org/apidocs/dev/org/apache/poi/xssf/usermodel/XSSFWorkbook.html#getCTWorkbook

Good luck.
Andreas



On Fri, 2020-10-23 at 17:43 +0200, Cosimo wrote:
> On Fri, Oct 23, 2020, at 14:09, Cosimo wrote:
> > On Fri, Oct 23, 2020, at 12:11, Andreas Reichel wrote:
> > 
> > > And this shows how to use
> > > it: 
> > > https://stackoverflow.com/questions/46623554/add-latex-type-equation-in-word-docx-using-apache-poi
> > 
> > Seems to be a good approach, thanks!
> 
> I am not familiar with poi, but I can't see any way to add a "omath
> object",
> whatever these things are called, to an XSSFWorkbook.
> 
> Based on that SO post, for Word, the path is `doc.createParagraph()`
> and
> then `paragraph.getCTP().addNewOMath()`.
> For an XSSFWorkbook, how would one get there?
> 
> Sheet -> Drawing -> CTDrawing -> ??
> 

Reply via email to