Skip to content
Advertisement

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 measurement unit is TWIP – twentieths of an inch point.

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:

how to solve java.lang.NoSuchFieldError: RETURN_NULL_AND_BLANK in java

here ssa_msg_daily contains blank or null values in the table,so while compiling i am getting error as Exception in thread “main” java.lang.NoSuchFieldError: RETURN_NULL_AND_BLANK occurs @ XSSFWorkbook workbook = new XSSFWorkbook(); how can i handle this situation and i am using the resultset to convert to spreedsheet using apache poi Answer You’ve got a classpath issue. You have a mix of

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

Advertisement