Excel out of memory when using HSSFCell.ENCODING_UTF_16

2005-11-03 Thread Tobias Meyer
Hello list, I'm using poi-2.5.1-final to generate an excel sheet with 92 columns - text, numbers, booleans and dates. The problem occurs, if I use the UTF_16 encoding (which I need for chinese letters), but not if I use HSSFCell.ENCODING_COMPRESSED_UNICODE. Excel completely refuses to open the

AW: Excel out of memory when using HSSFCell.ENCODING_UTF_16

2005-11-07 Thread Tobias Meyer
schrieb Tobias Meyer [EMAIL PROTECTED]: Hello list, I'm using poi-2.5.1-final to generate an excel sheet with 92 columns - text, numbers, booleans and dates. The problem occurs, if I use the UTF_16 encoding (which I need for chinese letters), but not if I use

AW: 2 Fonts in 1 Cell - ByteArrayInputStream

2005-12-02 Thread Tobias Meyer
AFAIK Excel does not support two fonts in one cell. Try doing thin in excel itself... As workaround (maybe it's cleaner anyways...) try settung your Cell's encoding to UTF-16 and use the Unicode character \u2211 (Sum) or maybe the Greek Sigma \u03A3, if the Sum Symbol is not in your Font. i.e.:

RE: HSSF Failure in IE

2005-12-16 Thread Tobias Meyer
We have had several issues with IE and downloads as well. I'll try to summarize: 1. Cacheing: If the cacheing is completely disabled ( setHeader(Expires, 0) and alike - not 100% sure what header exactly triggered this ), IE will refuse to write the file to disk - at least when using SSL secured

AW: How to clone Rows or move rows between sheets?

2005-12-29 Thread Tobias Meyer
You can use Region region = new Region(rowStart, (short)(colStart), rowEnd, (short)(colEnd)); sheet.addMergedRegion(region); To add a merged region. To check, if a row contains a merged region you propably need to use sheet.getMergedRegionAt(index) and test if your current row is

RE: hebrew (or UTF) text

2006-01-08 Thread Tobias Meyer
You should use cell.setEncoding(HSSFCell.ENCODING_UTF_16). HSSFCell.ENCODING_COMPRESSED_UNICODE is - as far as I understood - UTF16 with the high byte chopped off and the name of the field is completely misleading... The Data should not be in any encoding. ( i.e. not any special encoding, java

RE: Unable to set the sheetname using POI API

2006-01-23 Thread Tobias Meyer
You should create your sheet in the workbook. If you just create a java object, how is POI supposed to know to which workbook it should belong to. i.e. use: workbook.createSheet(name) instead of : new HSSFSheet(name); and all should be fine... Hth, Tobias -Original Message- From:

RE: Major Problem With POI Excel reader: Urgent Help Needed

2006-05-05 Thread Tobias Meyer
for Excel to properly handle non-ASCII characters cou need to specify HSSFCell cell; cell.setEncoding(HSSFCell.ENCODING_UTF16); or something like that - I am quoting from the top of my head here - for each cell that contains a special character. Search this list - it has been discussed before.