Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Browsing all 120 articles
Browse latest View live

Read Date from Excel and change its Format

Hello, i have excel file and i want to reat some column and insert it in Db, any way i want to read Column with date Code: Date ======== 14.12.2010 15.12.2010 16.12.2010 17.12.2010 18.12.2010...

View Article


DateFormatter.formatRawCellContents throwing IllegalArgumentException for 0.0...

Hi, I am trying to read a xlsm file with POI switch (cell.getCachedFormulaResultType()) { case Cell.CELL_TYPE_NUMERIC: double value = cell.getNumericCellValue(); int formatIndex =...

View Article


HTML to DOCX or DOC

I have report page with images and text. I want to convert it to word document. How can I do this? I'm using Seam 2.2.2.FINAL with JSF (if it helps you) Images are stored in html in base64, for...

View Article

Read Excel Form Control

Hi, I want to read the value of checkbox from a excel worksheet using Apache POI. But not able to get the value. Regards, Rajesh

View Article

DOCX gets corrupted after several opening and closing

Hello, first of all, sorry about my english. I hope someone could know if there is any problem with my code or it's a problem with poi library. I'm using poi 3.9. The fact is this: 1.- I read a file...

View Article


Apache POI - Create Password Protected Excel - Read only protected.

I need to create a password protected excel. Currently, I'm using Apache POI (WriteProtectWorkBook) which unfortunately allows the users to open the excel in Read only mode. This is not recommended...

View Article

How to write in existing *.xlsx file using java

Hi Guys! This is my first post here. Hope you all are doing well. Could you please help me how to write to existing xlsx file using java. If you could site an example that would be better Thanks in...

View Article

Apache POI help needed

Hi, We have dynamic content to be displayed in excel(xlsx) file. First couple of rows will have table data after table data we need to show text(in merged region). There will not be any limit to the...

View Article


Digital signature on Office documents

Hi Please, could someone point me in the right direction to digitally sign an Office document (docx, xlsx, pptx) using POI? I have already reviewed the classes under...

View Article


How to read value of a checkbox using Apache.POI. (Help please!)

I am using apache POI for the first time.I am trying to read the value of a check-box from a word document(fixed template). But i am not getting the proper values(0 or 1) for unchecked and checked...

View Article

How to get freeze columns information through apache poi for excel?

I have an excel file in which any column is made freeze by user. Now i want to get information about the freeze columns. How can i do that? Any kind of help is appreciated. I am using apache poi to...

View Article

Image may be NSFW.
Clik here to view.

Unreadable content when creating xlsx file using Apache POI

I am getting the below message when opening a xlsx file generated through Apache POI. "We found a problem with some content in "workbook.xlsx". Do you want to try to recover as much as we can? If you...

View Article

Reading my excel values

I have an excel worksheet that has macros & formulas. My objectives are to (1) Read the file from a specific folder, change the value of E6 and force the recalculations on the entire sheet that...

View Article


get Bytes from XSSF workbook

In HSSFWorkbook there is method getBytes(); How can i getBytes from XSSFWorkbook as there is no method?

View Article

Your InputStream was neither an OLE2 stream, nor an OOXML stream

I am using Apache Commons to upload a .docx . While uploading, I also want to extract text by using Apache POI libraries. If I pass the inputstream returned from item.openStream(); from...

View Article


What do I need to close to free memory ?

Hi. I use poi to read Excel files in a task in Bonita BPM. When I run this task more than 3 times, it won't work again and I see this error in the log :...

View Article

how to tune and optimize POI Code

hi am exporting adf table to excell i what to optimize my code using BigGridDemo.java how can i do the same using below code [code] Code: public void generateExcel(FacesContext facesContext,...

View Article


ShiftRows & Conserve Data?

Hi, I need a way to insert new cells and/or rows between pre-existing rows without deleting any of the rows. I tried using: Code:         public static void addRow(File f, int amount, int currentRow)...

View Article

Conditional Formatting

In previous version of POI, it is noted that ConditionalFormattingRule containing formulas containing cell references are not parsed properly. I installed version 3.10 and it appears to behave the same...

View Article

Return a range of cells with Apache POI Java API, Excel and Java

I have 3 named ranges on excel, say, Name COUNT_FAM Refers To "COUNTA(Sheet1!$X$X)" Name FAMILIES Refers To "INDIRECT(Sheet1!I2:I"&COUNT_FAM")" Name FLEX_SOM Refers To "OFFSET(Sheet1!$Y$2, 0, 0,...

View Article
Browsing all 120 articles
Browse latest View live