Hi everyone, I use POI for generating reports and have recently run into the following issue: I need to set a tab for a header paragraph and used the following code: CTTabs ctTabs = paragraph.getCTP().addNewPPr().addNewTabs(); CTTabStop ctTabStop = ctTabs.addNewTab(); ctTabStop.setPos(BigInteger.valueOf(1200)); First I was sure the reason is the use of wrong means, however when I opened test.docx with some tabbed text as zip archive and parsed document.xml I found the following element: <w:pPr> <w:tabs> <w:tab w:val="left" w:pos="1985"/> </w:tabs> <w:rPr> <w:lang w:val="en-US"/> </w:rPr> </w:pPr> So the code seems to be correct comparing with actual xml markup. Why then I fail to create the same with my code?
It seems nobody could answer this question over the years. BTW, for such usage questions you are more likely to get answers if you post on stackoverflow.