Re: Is there a bug in the setPrintArea()?

2003-12-19 Thread Danny Mui
I just tried it with row counts from 40-1000 and it seems to work properly. Perhaps a more comprehensive code snippet to fully duplicate the problem? Lior Shliechkorn wrote: Any ideas on why I can't get it to work? Danny Mui <[EMAIL PROTECTED]> wrote:looks simple enough to match the test cases t

Re: Is there a bug in the setPrintArea()?

2003-12-19 Thread Lior Shliechkorn
Any ideas on why I can't get it to work? Danny Mui <[EMAIL PROTECTED]> wrote:looks simple enough to match the test cases that were written but will investigate nonetheless. both calls end up using the same logic so they should be consistently wrong/right hehe. Lior Shliechkorn wrote: > Hi, >

Re: Is there a bug in the setPrintArea()?

2003-12-19 Thread Danny Mui
looks simple enough to match the test cases that were written but will investigate nonetheless. both calls end up using the same logic so they should be consistently wrong/right hehe. Lior Shliechkorn wrote: Hi, I'm trying to set a print area so that my file can fit on one page. However, I'm

Is there a bug in the setPrintArea()?

2003-12-19 Thread Lior Shliechkorn
Hi, I'm trying to set a print area so that my file can fit on one page. However, I'm not getting the results I need from the setPrintArea() - both methods. This is what I'm doing: wb.setPrintArea(0, "$A$1:$N$" + GLOBAL_ROW_COUNT); or wb.setPrintArea(0, 0, 15, 0, (int) GLOBAL_ROW_COUNT);

RE: Character encoding

2003-12-19 Thread Robert Lowe
You need to set UTF-16 encoding for each cell, like this: HSSFCell cell = ...; cell.setEncoding(HSSFCell.ENCODING_UTF_16); Best regards, Robert Lowe http://RMLowe.com/ -Original Message- From: T " <[EMAIL PROTECTED]> [mailto:T " <[EMAIL PROTECTED]>] Sent: Friday, December 19

Character encoding

2003-12-19 Thread Ü
Hi, I am new to POI and I am using HSSF for now. I create xls files but there is a problem with character encodings, when I send Turkish characters from my java class to xls file I can not see them properly, but when I open the file and type the same characters manualy there is no problem. I think