apache-poi

How to update cell reference values using Apache POI

一笑奈何 提交于 2020-01-15 23:38:31
问题 I am using Apache POI to create new XSSFWorkbook from an existing one, after updating some values. Suppose I have two worksheets (Lets say: worksheet A & B) in my existing workbook. Worksheet B has some cell reference from Worksheet A. IF i modify those cell values of worksheet A and save them as a new workbook, corresponding cell values of worksheet B should be updated too. But it doesn't. How can i update them programmatically? . Thank you. My code: public void createExcel(ClientData cd)

How to update cell reference values using Apache POI

a 夏天 提交于 2020-01-15 23:37:14
问题 I am using Apache POI to create new XSSFWorkbook from an existing one, after updating some values. Suppose I have two worksheets (Lets say: worksheet A & B) in my existing workbook. Worksheet B has some cell reference from Worksheet A. IF i modify those cell values of worksheet A and save them as a new workbook, corresponding cell values of worksheet B should be updated too. But it doesn't. How can i update them programmatically? . Thank you. My code: public void createExcel(ClientData cd)

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

北城以北 提交于 2020-01-15 05:41:28
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

一笑奈何 提交于 2020-01-15 05:41:12
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

Apache POI JDK version

橙三吉。 提交于 2020-01-15 05:05:31
问题 I was looking for examples on how to create an XML File in ANT for Java project using Apache POI library. I encountered this statement: POI 3.5 and later requires the JDK version 1.5 or later. Versions prior to 3.5 require JDK 1.4+ here I am using Apache 3.9 and set the JDK of my project to Java 1.4 and I didn't encounter any error when trying to run my program via eclipse. But my question is if I make build.xml in ANT and deploy the JAR file. Will my project still run (3) ? Extra info I

Apache POI JDK version

淺唱寂寞╮ 提交于 2020-01-15 05:05:10
问题 I was looking for examples on how to create an XML File in ANT for Java project using Apache POI library. I encountered this statement: POI 3.5 and later requires the JDK version 1.5 or later. Versions prior to 3.5 require JDK 1.4+ here I am using Apache 3.9 and set the JDK of my project to Java 1.4 and I didn't encounter any error when trying to run my program via eclipse. But my question is if I make build.xml in ANT and deploy the JAR file. Will my project still run (3) ? Extra info I

Invalid Header Signature - Opening XLS with Apache POI

老子叫甜甜 提交于 2020-01-15 04:55:27
问题 I'm trying to convert a XLS file into a CSV file in java using Apache POI 3.9, however I'm getting some issues. When trying to convert the file I need to, it shows me the following error: java.io.IOException: Invalid header signature; read 0x0010000000080209, expected 0xE11AB1A1E011CFD0 at org.apache.poi.poifs.storage.HeaderBlock.<init>(HeaderBlock.java:140) at org.apache.poi.poifs.storage.HeaderBlock.<init>(HeaderBlock.java:104) at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>

How can I remove hyperlink in poi 3.8?

别等时光非礼了梦想. 提交于 2020-01-14 12:13:11
问题 I have some problem with reading an excel file contains hyperlink text in poi. Data is like that(excel file): |1| type | category | job_type | position | name | email |2| Test | developer | parttime | manager | hong | asdf##@dsaf.com( hyperlink ) |3| Test | developer | parttime | manager | asde | test@mail.com( hyperlink ) |4| Test | developer | parttime | manager | asde | aaaaaaa( non-hyperlink ) To create workbook object, I use WorkbookFactory.create(InputStream inp) method. Codes are here:

How can I remove hyperlink in poi 3.8?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-14 12:12:30
问题 I have some problem with reading an excel file contains hyperlink text in poi. Data is like that(excel file): |1| type | category | job_type | position | name | email |2| Test | developer | parttime | manager | hong | asdf##@dsaf.com( hyperlink ) |3| Test | developer | parttime | manager | asde | test@mail.com( hyperlink ) |4| Test | developer | parttime | manager | asde | aaaaaaa( non-hyperlink ) To create workbook object, I use WorkbookFactory.create(InputStream inp) method. Codes are here:

How can I remove hyperlink in poi 3.8?

雨燕双飞 提交于 2020-01-14 12:11:34
问题 I have some problem with reading an excel file contains hyperlink text in poi. Data is like that(excel file): |1| type | category | job_type | position | name | email |2| Test | developer | parttime | manager | hong | asdf##@dsaf.com( hyperlink ) |3| Test | developer | parttime | manager | asde | test@mail.com( hyperlink ) |4| Test | developer | parttime | manager | asde | aaaaaaa( non-hyperlink ) To create workbook object, I use WorkbookFactory.create(InputStream inp) method. Codes are here: