Skip to content

Tag: apache-poi

Apache POI – How to set character spacing for XWPFRun

I need to create an XWPFRun with character spacing expanded by 1 pt. I tried the methods setCharacterSpacing and setKerning but to no avail. I also found no code examples or documentation for either method. Any advice? Answer For me XWPFRun.setCharacterSpacing works. What one needs to know is that the measure…

Reading Excel File Column in Java

I have a sample of Excel data that needs to be read and store in the database. Example: I have tried to use Apache POI in reading data by row. But how do I get the Name and the amount from the column at the same time? Something like this Any help would be appreciated. Thanks Answer Result:

Second Line in an Apache-POI chart with seperate axis

Hi this code taken from the answer here is working as expected, but I want exactly the same Chart but in an Excel-Sheet So I modified the code like this to get an XLSX document, but the Chart isn’t the same Answer The problem is that for a Word (XWPF) chart, the data are stored in a Excel workbook which