POI « Excel File « Java I/O Q&A





1. Is it possible using apache poi to load data from an open excel file that is constantly updating?    stackoverflow.com

I have this Java program that uses apache poi to load data from an excel file. Problem I'm facing is I can't seem to load data from the excel file ...

2. to get columns from Excel files using Apache POI?    stackoverflow.com

In order to do some statistical analysis I need to extract values in a column of an Excel sheet. I have been using the Apache POI package to read from Excel ...

3. JAVA - Apache POI OutOfMemoryError while writing Excel File    stackoverflow.com

I am writing an Excel File using Apache POI. I want to write in it all the data of myResultSet which has the fieldnames(columns) stored in the String[] fieldnames. I have 70000 rows and ...

4. Apache POI: How to insert column in Excel file    stackoverflow.com

I'm using POI to manipulate data in Excel files for a university project. I'm having trouble inserting a new column in an existing Excel. I tried to use

Cell c = createCell(int ...

5. How to initialize cells when creating a new Excel file (Apache POI)    stackoverflow.com

I am currently using Apache POI to create empty excel files (that I will later read and edit). The problem is that whenever I try to get the cell, I always ...

6. Add borders to cells in POI generated Excel File    stackoverflow.com

I am using POI to generate an Excel File. I need to add borders to specific cells in the worksheet. How can I accomplish this?

7. Count not null row in Excel file using Apache POI    stackoverflow.com

Does Apache POI provide any function for us to count the number of "not-null" rows in a sheet of an Excel file?
At the first time, I have an Excel sheet with ...

8. Append in an excel file through java POI API while the file is opened    stackoverflow.com

I have created a java program which produces an excel sheet using Java POI API which gets data from oracle 10g database but I want to update it after every 5 ...

9. How to decrypt excel file 2007 by POI 3.8 if it is protected by "Restrict Editing"    stackoverflow.com

In excel 2007, we can Protect Workbook by select "Protect Workbook" on menu and select "Protect Structures and Windows". I have file with extension ".xlsm" and it is protected like the way ...





10. Get columns' names in excel file using Apache POI    stackoverflow.com

i was wondering how to get the column names in excel file using Apache POI, to make sure that the columns are ordered as expected.

11. Attempt to write an excel file with Apache POI causing OutOfMemoryError    bytes.com

pronerd re: Attempt to write an excel file with Apache POI causing OutOfMemoryError @blazedaces That is the only option I know of for Java to create the acutal files. Some other ...

12. Setting Range Protection in Excel File using Jakarta POI    coderanch.com

I am using Jakarta HSSF POI to create an excel file in Java. I am able to set password protection for the whole sheet. But I need to set it only for a few columns and the others should be editable. I checked in Excel and there is an option "Allow Users to Edit Ranges". Is this feature available in Jakarta ...

14. POI Excel rewrite to file    forums.oracle.com

Hi, I would like to write to an existing excel file using POI. I added a clause to check if file doesn't exist, create a new excel, or if exist, create a new worksheet. when i execute the program, i can the see a new excel file being created. when i execute again, i see the file size increase . but ...

15. Error reading excel file using POI.    forums.oracle.com

16. POI to read excel file    forums.oracle.com





17. Modify existing excel file (POI API)    forums.oracle.com

18. Reading Excel Files Using POI    forums.oracle.com

BOFRecord (bof.TYPE_WORKSHEET) - index 1 RowRecord NumberRecord SSTRecord LabelSSTRecord The BOFRecord, type Worksheet is an event to say worksheet found. The RowRecord says that a row has been found The NumberRecord says that a cell with a number value has been found The SSTRecord is a touch more complex, its an index to the string table. You get the SSTRecord before ...

19. Insert File Object in Excel sung apache POI    forums.oracle.com

20. How to Update A Preformated Excel File In Java Using POI?    forums.oracle.com

Hi All, I am Using POI to read and write excel and pdf file. Now if i want to update a Preexisting Excel file then its replace the older one and create new Excel File. So how can i make update on existing excel file.? do u have any Fruitful suggestion regarding the same.?

21. Convert Excel files using Apache POI    forums.oracle.com

Hi, I was trying to use open source or free API to convert MS Excel files (XLS, not XLSX) into PDF & CSV. So the first choice was Apache POI but I did not find the way through the API. Second choice(over searching) was an utility from http://www.dancrintea.ro/xls-to-pdf/ which can convert Excel to pdf, html, csv, it does the job, but ...

23. Read Excel files using POI    forums.oracle.com

Hi, Can anyone guide me where to find methods getPhysicalRowAt() and getPhysicalCellAt() to read excel files using apche POI. These methods are not available in org.apache.poi.hssf.usermodel.HSSFSheet After searching I found that these methods are avilable in apache cocoon. But no way to download the entire jar file which would provide me these methods. Please tell me is there any alternative way ...

24. unlock excel file in POI    forums.oracle.com

java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:257) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:193) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:207) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:254) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:235) at XmlStand.generateXML(XmlStand.java:135) at XmlStand.main(XmlStand.java:1098) Caused by: java.lang.IllegalArgumentException: Illegal length at org.apache.poi.util.StringUtil.getFromUnicodeHigh(StringUtil.java:114) at org.apache.poi.hssf.record.FontRecord.fillFields(FontRecord.java:172) at org.apache.poi.hssf.record.Record.fillFields(Record.java:127) at org.apache.poi.hssf.record.Record.(Record.java:92) at org.apache.poi.hssf.record.FontRecord.(FontRecord.java:125) ... 11 more Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance, the following exception occured: null at ...

25. Reading and Writting Excel file using POI API with eventusermodel    forums.oracle.com

Hi, can anybody tell me how to read and write data using Apache POI API with the eventusermodel. My file contains Header names by which i'll read data one by one and line by line and write data according to the headers provided in file. For more clarification, i will save header list and read data according to column's name and ...

26. How to open the excel file using poi    forums.oracle.com

27. Exception while Reading Excel File Using POI.    forums.oracle.com

28. Apache POI - output excel file size gets doubled    forums.oracle.com

Hi, Greetings!! I am using Apache POI package for a Java application to read and write excel files. I am facing one specific problem. I have a excel template which contains complex macros, images and complex formatting. I used HSSFWorkbook to read the input template file and filled in data in the template, and created the output file using FileOutputStream. The ...

29. How to append poi excel files?    forums.oracle.com

30. save a excel file with poi    forums.oracle.com

Hi. i want to save the modification i made in a excel file using poi, without open the MS excel program and do it manually ( Ctrl+s)... i used FileOutputStream out = null; out = new FileOutputStream("c:/VolumeDetails.xls"); wbD.write(out); but the program not recognize de changes until i saved manualy and i need to work with these modifications. i hope you can ...

31. POI: How to append excel files using poi?    forums.oracle.com

33. POI - How to restrict user to delete the Sheet from excel File    forums.oracle.com

Basically you want the limitation to be on the Excel side, right? Users opening the file in Excel cannot delete that particular sheet. I doubt that this is possible. If it is, it should be in the POI documentation, so I suggest you check that out. If you find out that it is possible, please share the solution!

34. Can I process Excel BIFF5 files, or simply abandon Apache POI?    forums.oracle.com

To the experienced: I am totally new to processing Microsoft Excel files using Java, and embarked on Apache POI. Now it seems I could be completely out of luck because of the Excel files I am to process. Now looking back, I realize that what I did with the Excel file I first received (a .xls file) was opening it in ...

35. Reading MS Excel file via Apache POI    forums.oracle.com