jexcelapi

Evaluation from Apache POI and JExcel Api

点点圈 提交于 2019-12-05 05:48:50
问题 I need create Excel woorkbooks in Grails, Grails support both Apache POI and JExcel Api, but I would like you to tell me about the advantages and disadvantages of both. According to I know, Apache POI is more faster than JExcel Api, but the JExcel API have a mos friendly code. Please if do you tell me about your experience. Thanks 回答1: A couple of differences: JExcel is limited to Office 2003 formats whereas POI supports the 2007/2010 format (xlsx) In many cases Jexcel is a whole lot less

Making new colors in JExcelApi

房东的猫 提交于 2019-12-05 03:22:32
I'm using JExcelApi for generating XLS files. From jxl.format.Colour , I see how to get any of the colors in the "standard Excel colour palette", but not how to create a new color (say, given its RGB). But in Excel itself, I can pick any color at all. Am I just missing it? Is there a way in JExcelApi to select an arbitrary color? I'm using a simple find-the-closest-standard-color method right now, which is OK but not great. Excel versions before 2007 have a standard palette, and given that the API you are using does not support the 2007 format, you may be stuck with that. The reason you can

jExcelApi - cell date format reusing doesn't work

北慕城南 提交于 2019-12-04 03:38:40
问题 I created a wrapper to jExcelApi classes to easily export lists of objects to Excel. To minimize object creation cell formats are created as static fields and reused in consecutive calls to export. But I have problems with Date format - the first call works good, but in all consecutive exports date cells have numeric format instead of date format. If I create a new object for date format instead of using static field, everything is fine. Is there any reason that using same format object for

Which library should I use to write an XLS from Linux / Python?

て烟熏妆下的殇ゞ 提交于 2019-12-03 07:15:20
I'd love a good native Python library to write XLS, but it doesn't seem to exist. Happily, Jython does. So I'm trying to decide between jexcelapi and Apache HSSF: http://www.andykhan.com/jexcelapi/tutorial.html#writing http://poi.apache.org/hssf/quick-guide.html (I can't use COM automation because I'm not on Windows, and even if I was, I couldn't afford Office licenses.) My initial thoughts are that POI/HSSF is very thorough, but also very Java-- everything seems a bit harder than it needs to be. Good documentation, but my head hurts trying to bridge the gap between what it describes and what

Character encoding issues in Eclipse for Java using Webdriver

岁酱吖の 提交于 2019-12-02 00:10:16
I'm currently using Eclipse with TestNG running selenium webdriver with java. I am using Jexcelapi to import data from OpenOffice (spreadsheet) to compare strings on the website i'm testing with values in the spreadsheet. The problem I have is that we have different regions including germany and Nordics (Sweden, Norway and Denmark). These sites have string characters with accents special characters. This is copied correctly on my spreadsheet and running the scripts in debug mode shows the correct character from the spreadsheet but when i get my results, it displays invalid characters such as ?

Jexcel Formula Calculation Error

▼魔方 西西 提交于 2019-12-01 08:40:50
I have created a worksheet, out.xls which had cell D6=D5*2 and D5 set to 1. My issue is that when I plug a value into D5 in jxl, D6 never calculates. D6 simply holds on the value it initially calculated when I plugged in 1 to D5 in excel. note: I have a much larger programming problem that I am trying to tackle, this is just a very scaled down version to reduce error. This is my first time ever use Jexcel and I only just learned java this last year, so any help would be appreciated. I spent 6 hours yesterday trying to find an answer on the web, but to no avail. the output is attached below the

Jexcel Formula Calculation Error

白昼怎懂夜的黑 提交于 2019-12-01 06:40:51
问题 I have created a worksheet, out.xls which had cell D6=D5*2 and D5 set to 1. My issue is that when I plug a value into D5 in jxl, D6 never calculates. D6 simply holds on the value it initially calculated when I plugged in 1 to D5 in excel. note: I have a much larger programming problem that I am trying to tackle, this is just a very scaled down version to reduce error. This is my first time ever use Jexcel and I only just learned java this last year, so any help would be appreciated. I spent 6

Encoding problem in JExcel

一曲冷凌霜 提交于 2019-11-30 17:32:28
I am loading an excel file in an GAE/Java application with JExcel like this: The html form to upload the file islike this: <form id="" action="/save" method="post" enctype="multipart/form-data" accept-charset="ISO-8859-1"> <input name="file" type="file" value="load"/> <input type="submit"value="load excel"/> </form> and in the server I have: ServletFileUpload upload = new ServletFileUpload(); FileItemIterator iterator = upload.getItemIterator(request); while (iterator.hasNext()) { FileItemStream item = iterator.next(); InputStream stream = item.openStream(); if (!item.isFormField()) { //if it

how to solve JXL error : jxl.read.biff.BiffException: Unable to recognize OLE stream

余生颓废 提交于 2019-11-30 17:19:05
i am trying to get cell data from my .csv file but it gets error : jxl.read.biff.BiffException: Unable to recognize OLE stream I don't understand how to solve this,please give me some solution this code is for jxl api & is that api support to .csv? Code for reference: public void read() throws IOException, BiffException { File inputWorkbook = new File(inputFile); try { w = Workbook.getWorkbook(inputWorkbook.getAbsoluteFile()); // Get the first sheet Sheet sheet = w.getSheet(0); // Loop over first 10 column and lines for (row = 1; row < sheet.getRows(); row++) { ReadExcelLotSizeEntity

Encoding problem in JExcel

[亡魂溺海] 提交于 2019-11-30 01:13:38
问题 I am loading an excel file in an GAE/Java application with JExcel like this: The html form to upload the file islike this: <form id="" action="/save" method="post" enctype="multipart/form-data" accept-charset="ISO-8859-1"> <input name="file" type="file" value="load"/> <input type="submit"value="load excel"/> </form> and in the server I have: ServletFileUpload upload = new ServletFileUpload(); FileItemIterator iterator = upload.getItemIterator(request); while (iterator.hasNext()) {