Re: HSSF Question on column widths

2002-05-09 Thread Andrew C. Oliver
Johannsen, Cory wrote: >The javadoc states that the column widths are set in units of 1/256 of a >character. What font size is that based upon? I've noticed that if the >font is increased, the column sizing still clips the cell, and I would like >to be able to compensate for an increased font s

HSSF Question on column widths

2002-05-09 Thread Johannsen, Cory
The javadoc states that the column widths are set in units of 1/256 of a character. What font size is that based upon? I've noticed that if the font is increased, the column sizing still clips the cell, and I would like to be able to compensate for an increased font size by scaling the column wi

Re: newbie-question: reading an XLS-File and convert it to XML/HTML

2002-05-09 Thread Andrew C. Oliver
Not yet. I plan on writing a Cocoon generator, but I haven't gotten around to it yet. You can go the other direction only currently. xml.apache.org/cocoon for details (usermanual->Serializers ... but we don't have a generator yet) The generator will be able to feed back into the serializer

newbie-question: reading an XLS-File and convert it to XML/HTML

2002-05-09 Thread Kay Lingenauber
Hi everybody, after reading the POI/HSSF-documentation I'm still not clear about generating XML and/or HTML-Files using POI. Is it possible to convert a XLS-File (using FileInputStream e. g.) into XML or HTML ? thx in advance :) Kay -- To unsubscribe, e-mail: For

Re: got IOException from poi.poifs.storage.RawDataBlock.( RawDat aBlock.java:98)

2002-05-09 Thread Andrew C. Oliver
I regard this as a bug in either your servlet engine or in the servlet api itself. Test this on tomcat or some other servlet engine and see if it will work. I don't want to allow corrupt bytes/bits at the end of the file to work around something that is a result if incorrectness elsewhere.

RE: got IOException from poi.poifs.storage.RawDataBlock.(R awDat aBlock.java:98)

2002-05-09 Thread An Feng-I Chen
Thanks for the help, Andy. About the extra byte, I suspect it comes from the html multi-part form type. I got the file content (byte[]) from HttpServletRequest.getAttribute(). I don't think it's my codes added the extra byte. So I wonder if POI wants to handle this scenario or I have to change Ra

Re: got IOException from poi.poifs.storage.RawDataBlock.( RawDat aBlock.java:98)

2002-05-09 Thread Andrew C. Oliver
An Feng-I Chen wrote: >Hi, > >I think I know why this problem occurs. > >The code RawDataBlock line 93 expects that each inputstream read should >return 512 bytes, if is not eof. Otherwise exception will be thrown. >However, my Excel file size is 13825. I tested to read my file, the last >read re