apache-poi Questions

2

Solved

I have a Cell object, how can I get the name of that cell? Would like a function such as: String name = myCell.getName(); In Excel I have named it in the name box, so I don't want to get 'B4',...
Babettebabeuf asked 30/10, 2014 at 9:43

2

Solved

What I want to do is ask the user if they want to create a new or select an existing Excel workbook. Selecting an existing file is no problem. However I get an error saying "Your file appears not t...
Author asked 23/11, 2015 at 19:54

4

We are using Java 11 and compared to earlier versions of Java ,Java 11 have removed fonts folder from jre/lib. So our poi calls are failing at createsheet call,due to missing fontconfig. If we inst...
Plusch asked 6/8, 2021 at 1:59

4

Solved

I am trying to write a huge excel file, my requirement allows me to write the row and forget, so i am using SXSSF which allows to keep only a few number of rows in memory and rest all are written t...
Stannite asked 13/12, 2013 at 8:0

6

Solved

Java 8 here using Apache POI 4.1 to load Excel (XLSX) files into memory, and write lists of Java beans/POJOs back to new Excel files. To me, an Excel file (at least the ones I'm working with) is r...
Limbo asked 21/11, 2019 at 17:56

3

Solved

I have a requirement Where I need to add data validation to an entire column rather than a specific cell. I went through the documentation of Apache poi and found the example below HSSFWorkbook wo...
Weimer asked 27/1, 2015 at 15:17

5

How to make this table to auto-fit to document page width, when the column size increases, using apache-poi and aligning that table to center. This code generates a word Document extracting data f...
Clementius asked 1/3, 2013 at 2:23

2

Solved

autoSizeColumn method of POI throws an exception that I didn't manage to resolve : "java.lang.ClassNotFoundException: Didn't find class "java.awt.font.FontRenderContext" on path:..." with this...
Botzow asked 6/5, 2016 at 10:15

25

Solved

I have excel file with such contents: A1: SomeString A2: 2 All fields are set to String format. When I read the file in java using POI, it tells that A2 is in numeric cell format. The problem...
Groceries asked 2/7, 2009 at 4:50

2

When I am trying to update existing excel file I am encountering following error: Exception in thread "main" java.lang.NullPointerException at xltest.main(xltest.java:28) My code: FileInputStr...
Eldaelden asked 20/12, 2013 at 1:39

6

I build a very large POI workbook, on my web server. Holding the entire workbook in memory , will not scale for multiple concurrent requests. Is there a way i can progressively write the workbook t...
Ammerman asked 20/4, 2010 at 8:49

5

Solved

I know that we can use Apache POI to parse an Excel file and get data. But I heard of a strange thing that excel file can be passed in a similar way we parse CSV (Like just read the file from file ...
Tenpin asked 20/4, 2012 at 15:9

3

Here's what I know so far: You use the method sheet.getNumMergedRegions() to get the number of merged regions in a particular sheet You loop through each count and use the method sheet.getMergedR...
Haystack asked 2/4, 2013 at 3:18

4

I'm trying to use Apache POI Library in Eclipse RCP project. So I added poi, poi-ooxml and poi-ooxml-schemas to project, but still got an Exception java.lang.NoClassDefFoundError: org/apache/poi/ut...
Unscathed asked 16/8, 2016 at 8:26

2

Solved

I have upgraded from org.apache.poi-poi-ooxml-5.2.3 to org.apache.poi-poi-ooxml-5.2.4 due to Security Violation Threat in 5.2.3 Now, I am facing run time exception as java.lang.NoSuchMethodError Ex...
Notional asked 9/10, 2023 at 4:51

5

Solved

The below code is not working with Apache poi 3.16. Can someone provide with the correct solution, in my project there are some dependency for using only public void ConvertToPDF(String docPath, ...
Coaly asked 20/7, 2018 at 10:17

7

Solved

I want to set the foreground color of a cell to a given color in hex code. For example, when I try to set it to red: style.setFillForegroundColor(new XSSFColor(Color.decode("#FF0000")).getIndexed(...
Boscage asked 6/6, 2012 at 10:39

13

Solved

I am using Apache POI API to generate excel spreadsheet to output some data. The problem I am facing is when the spreadsheet is created and opened, columns are not expanded so that some long text ...
Kimble asked 6/1, 2011 at 1:36

3

I need to create a drop down list in excel file using Apache POI. and I am able to do that so But I am not able to make first item in drop down list as default Item. public class sd { /** * @pa...
Canaliculus asked 10/5, 2012 at 12:33

4

I now have this problem. I want to write a excel file hold in this XSSFWorkbook (workbook) obj into a zip file eg(example.zip while contain this example.xlsx file) to a remote server. I have trie...
Brooksbrookshire asked 23/5, 2013 at 18:10

8

I am currently using Apache POI for Java to set formulas in cells. But after I run the program and open the Excel file that I created and processed, the cells with the formula include the formula ...
Clydesdale asked 26/2, 2010 at 3:2

3

I need to add the apache poi to my project (I need hssf, ss and xssf). I downloaded a jar file from the internet but it does not contain xssf. I went to http://poi.apache.org/ and I downloaded this...
Ousley asked 19/2, 2013 at 13:28

6

Solved

I am getting Number stored as text warning for the created excel file using POI. I am trying to display percentage. This question discusses the same, but it's for python. Can some one please sugges...
Meadowlark asked 21/2, 2014 at 4:53

4

Solved

I am getting this error: org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Off...
Agio asked 5/8, 2015 at 23:12

4

Solved

I've written module that generates excel, and deployed it under Servicemix. In Windows environment everything is fine, but under Linux Servicemix unexpectedly crashes on following call: for (shor...
Laager asked 14/9, 2011 at 7:1

© 2022 - 2025 — McMap. All rights reserved.