Create Workbook from ServletInputStream

2005-11-15 Thread Alexis A. Trafelati
Hi, I'm new in this list, and I've just begun to use POI too. I'm trying to create a workbook in a servlet, to read an Excel file submitted by a form. This is exactly what I'm doing: --- import org.apache.poi.hssf.usermodel.*; ... ServletInputStream is = request.getInputStream(

RE: Is there a way to hide rows?

2005-11-15 Thread Davuluri, Usha
There is a way to make the row height zero. Try using row.setHeight((short) 0); Usha Davuluri SRA International, Inc. Environmental & Organizational Services Phone: (703) 292 5940 -Original Message- From: Clint A Brubakken [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 3:20

Is there a way to hide rows?

2005-11-15 Thread Clint A Brubakken
I looked at the api and the examples, and I didn't see any, is there an undocumented way? -- Clint A Brubakken Senior Software Developer Computer Science Services Group [EMAIL PROTECTED] 316-269-9090 ext 201 - To unsubscrib

RE: [poi] RE: POI 2.5.1 final: Date value formatting to 'DD.MM.YY YY'

2005-11-15 Thread Laubach Shawn Contr 327 CSSG/GFSL
If it's a format that is in there already, then no, it will not cause problems. Now if you did many cell styles, it would blow you up. You can even test it by doing the getFormat with a particular format twice. It should return the same value both times. If not, let me know and I'll fix it. Sh

Re: [poi] RE: POI 2.5.1 final: Date value formatting to 'DD.MM.YYYY'

2005-11-15 Thread Karl-Heinz Zengerle
Hi Christian. Be careful. If you've a lot of date cells and do workbook.createDataFormat() for any such cell it'll result in too many data formats. Do it just once and then refer to it when using a date format. Regards, Karl-Heinz. Am Di 15.11.2005 18:32 schrieb Christian Gosch <[EMAIL PROTECT

Re: [poi] RE: POI 2.5.1 final: Date value formatting to 'DD.MM.YYYY'

2005-11-15 Thread Christian Gosch
OK, I got this by myself too. Although not being very obvious, I found by decompilation that "HSSFDataFormat myFormat = workbook.createDataFormat()" and a successive call to "myFormat.getFormat("DD.MM.")" creates an appropriate format, if there is no such one in the workbook. That does the job

Re: [poi] RE: POI 2.5.1 final: Date value formatting to 'DD.MM.YYYY'

2005-11-15 Thread Christian Gosch
OK, the first step I have got now, and to be honest, I did not tell the whole truth about my code, because I did not think of the missing part being of special meaning :-( In fact I "reused" _one_ HSSFCellStyle object and tried to give it another DataFormat any time I use it. But there does not se

RE: POI 2.5.1 final: Date value formatting to 'DD.MM.YYYY'

2005-11-15 Thread Laubach Shawn Contr 327 CSSG/GFSL
That's add as the data format 15 DEC is really "d-mmm-yy". Would it be possible to attach an example sheet along with a list of a cell or two that has that particular format. Shawn -Original Message- From: Christian Gosch [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 10:36

POI 2.5.1 final: Date value formatting to 'DD.MM.YYYY'

2005-11-15 Thread Christian Gosch
Hi, I cannot successfully format a cell with "DD.MM." nor with any other date format. All I get is "#.##0" number format for the cells. How can I achieve "DD.MM." formatting? POI version: 2.5.1 final (this is fairly old, but there does not seem to be any newer "final" version :-( ) C

Re: Getting File error. Some number formats may have been lost.

2005-11-15 Thread Karl-Heinz Zengerle
Hi CP. Did you use a template? If yes then try to rebuild it from the scratch. If no then try how the reaction is when using a template. Regards, Karl-Heinz. Am Di 15.11.2005 00:04 schrieb CP Agrawal <[EMAIL PROTECTED]>: > Hi, > I get this error when I try to open an xls file generated using P