apache-poi

Is there a limitation reading XLSX file using SoapUI free version 5.3.0 & Apache poi-3.14?

霸气de小男生 提交于 2020-01-07 04:44:14
问题 Is there a limitation reading XLSX file? With XLS file, i face no problems. My Environment is: SoapUI free version 5.3.0 Apache POI 3.14 Windows 7 Pro/ Office 2010 Location of Apache POI libraries I unzipped the downloaded POI package into the following folder: C:\Program Files\SmartBear\SoapUI-5.3.0\bin\ext fyi - I have also tried adding it to lib The error i get when i try to run the groovy script provided below is: org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException

Java Security Exception BIRT and Apache POI Hack

社会主义新天地 提交于 2020-01-07 03:09:02
问题 I'm getting a java.lang.SecurityException: class "org.apache.poi.POIXMLDocument"'s signer information does not match signer information of other classes in the same package between the BIRT core jar and an Apache POI jar, as described by this BIRT bug report. It has been stated in the bug report that this can be fixed by upgrading BIRT, however when I do that I run into another runtime bug which can only be solved by downgrading. Thus, as it stands I am in a little bit of a pickle here. This

Get Cell Colour with Apache POI

吃可爱长大的小学妹 提交于 2020-01-07 02:51:12
问题 I'm trying to learn how to use Apache POI with a small project. I want to use Excel to create 'room layouts' by using colour-coded cells, and load the data into a Java program. I think understand how to access the colour properties of a cell, but what I'm asking is: Is it possible to access the colour of a blank cell (no data or value), or does a cell need to have data in order for Apache POI to read it? I am only interested in the colour, so might it be preferable to put junk data in the

Starting with Apache POI [closed]

不羁的心 提交于 2020-01-07 01:58:22
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am new at apache POI. I have downloaded JARs but have no idea where to start. Can anyone suggest good links for getting started with. I checked on project site but not finding it helpful. 回答1: A while back, I

How to create PPTX file using power-point-template using Apache POI

不想你离开。 提交于 2020-01-06 21:13:24
问题 Hi I want to create power-point presentation using power-point-template(which may be already exists or may be generated by poi.) for creating power point template file which have a background image in the slides, I write the following code which creates template file which opens in open-office but giving error to opening in Microsoft-power-point. The Code is private static void generatePOTX() throws IOException, FileNotFoundException { String imgPathStr = System.getProperty("user.dir") + "

Create a small circle in excel POI

折月煮酒 提交于 2020-01-06 19:35:34
问题 I know this question might seem similar but I have different problem. I know how to create a circle or a shape. This is what I want to create A little circle in the center of the excel cell The circle that I am able to make, looking at tutorials etc is: This is the code I am using to create: CreationHelper helper = workbook.getCreationHelper(); Drawing drawing = worksheet.createDrawingPatriarch(); ClientAnchor anchor = helper.createClientAnchor(); anchor.setCol1(0); anchor.setRow1(0); anchor

define dynamic cell range

血红的双手。 提交于 2020-01-06 19:29:42
问题 I am using APACHE POI for conditional formatting. I get txt file as input and i convert it into worksheet and then perform the conditional formatting. Now, the first column and header are text on which I wont do any formatting. I have to do conditional formatting on rest of the cells, like B2:I10(but it would keep changing) How can i define the cell range dynamically. Currently, I have CellRangeAddress[] my_data_range = {CellRangeAddress.valueOf("B2:I10")}; my_cond_format_layer

Apache POI: Retrieve page number from XWPFParagraph instance?

冷暖自知 提交于 2020-01-06 19:29:34
问题 I am iterating over XWPFParagraph instances coming from an XWPTDocument instance (using the "getParagraphs()" method) Is there a way to retrieve the page numbers where each paragraph is located from the XWPFParagraph instances? 回答1: To eventually turn Gagravarr's comment into a proper answer: No, this is not possible. Doing so would require a full-blown Word rendering engine (i.e. MS Word itself) and even then you cannot be absolutely sure that page breaks will always occur at exactly those

Converting complicated excel which containing images,drawings into pdf using java

瘦欲@ 提交于 2020-01-06 14:01:17
问题 can anyone please tell me whether it is possible to convert excel which containing images, drawings into pdf using poi and itext open source apis (openoffice not needed). My code is as given below, the code works fine...but comes to complicated excel i'm not getting the exact pdf import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java

What does it mean CTP and PPR?

旧街凉风 提交于 2020-01-06 11:45:13
问题 I starting figure out in apache.poi and I couldn't understand what does it mean CTP and PPr in XWPFParagraph . I have following code: targetParagraph.getCTP() .setPPr(index.getParagraph().getCTP().getPPr()); I not found describing of this methods in official documentation apache.poi Can you explain to me what is it or get me some link where I can read about it? Thanks for help! 回答1: getCTP() returns org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP which from my understanding