Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3344619379 for ; Tue, 29 Mar 2016 13:08:37 +0000 (UTC) Received: (qmail 18020 invoked by uid 500); 29 Mar 2016 13:08:36 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 17992 invoked by uid 500); 29 Mar 2016 13:08:36 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 17980 invoked by uid 99); 29 Mar 2016 13:08:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2016 13:08:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A5292C0217 for ; Tue, 29 Mar 2016 13:08:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.511 X-Spam-Level: ** X-Spam-Status: No, score=2.511 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wywB4cpM-ZD7 for ; Tue, 29 Mar 2016 13:08:31 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 455085F24D for ; Tue, 29 Mar 2016 13:08:30 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id h6so20594849oia.2 for ; Tue, 29 Mar 2016 06:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=1y91WDWNi6RmrgWiDgb9NbkGh/ZQhYgX7epNTMcwxsA=; b=lxK5ke2EAjGuu/Tf0O67tjuxak3cDg5RR+rBq8jYJCRQ1zun0qB0lJtfPrJhjbPFi3 4OzgTJ2l4iNZgbW6rYEJHcQd/IeySU6uIdKsOaW2kHkv1gOqIlJdCv0VgDX3zEcbrqoB AilfM4zGRUG4fuYEjFId4u/9AGNtZ38QrH0HCCPfB9E5VgJFLNothFeEObayxqGKpoVp PiQO+mrKWmRsfiC0ZCfNixBIT5eYTtrjRwDzlqOtk2aBYmdY1EFF/2wWVkM31fb1Pib7 PzodYOkzXCTvPy3r7NO+RiyImWrF2VcQ436W/yMTff9wROKikYrhmdX8ZycF5w13SZsU AmwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=1y91WDWNi6RmrgWiDgb9NbkGh/ZQhYgX7epNTMcwxsA=; b=jHrB/IqlSWD4trlYJ/z3ckLABkJ5ZD7CP/vGOs+UGYQuSNS+LKD+BoxWBqsWs3eF/l n5ILvbu5SZbEIXuAaU50sWaD2AMERuRnzYR3XctFO1WOxhWdrIkdfnulv42wunyDM0Co r2+dHWMAC6lqVT52Bc1SJalnmvenPeGEmjh9Z+uBT9bhz2V01rCfOz9TiIf0UroBG7iP qdJ31GT+tLNj9AO3RTw+R5CkpZibn/QazObSPh4BAEDUWhlgOj72fFfwkCWHCscORMs8 rL68hwcy47LBp2Oa8GVKqtBdCb/JUpCQPhkjw5K88S8dx0sps5LnsIwcbDDtS6E2w8UH B9jw== X-Gm-Message-State: AD7BkJLHsexkEikZavb9ArnEVY9MvKToKcNgMAJyxFDelqxPdJu3KecGNZFvTCx4UcHfyfuowdG+/8KcJ2Li/g== X-Received: by 10.157.4.72 with SMTP id 66mr1110708otc.141.1459256902439; Tue, 29 Mar 2016 06:08:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Adri=C3=A1n_Schwartzkopf?= Date: Tue, 29 Mar 2016 13:08:12 +0000 Message-ID: Subject: Re: Apache POI 3.14 Exception - The maximum column width for an individual cell is 255 characters. To: user@poi.apache.org Content-Type: multipart/alternative; boundary=001a1136fcbc4e5a35052f2fb93d --001a1136fcbc4e5a35052f2fb93d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I already found an answer in the Documentation: https://support.office.com/en-us/article/Excel-specifications-and-limits-16= c69c74-3d6a-4aaf-ba35-e6eb276e8eaa and *https://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/XSSFSheet.htm= l#setColumnWidth(int,%20int) * Thank you and have a nice day. Br, Adrian Adri=C3=A1n Schwartzkopf ezt =C3=ADrta (id= =C5=91pont: 2016. m=C3=A1rc. 29., K, 15:29): > > Hello, > > I actually use Apache POI 3.14 to generate an *SXSSFWorkbook* with > *SXSSFSheet*. > I use the sheet.*trackAllColumnsForAutoSizing();* option and the > *workbook.write(out);* method to write the XLS to an outpustream, but I > become the following Exception: > > > *Caused by: java.lang.IllegalArgumentException: The maximum column width = for an individual cell is 255 characters. > at org.apache.poi.xssf.usermodel.XSSFSheet.setColumnWidth(XSSFSheet.java= :2386) > at org.apache.poi.xssf.streaming.SXSSFSheet.setColumnWidth(SXSSFSheet.ja= va:274)* > > > > As I understand there was a Bug by the HssfSheet regarding this in the ol= der versions of POI, but it should be fixed: http://apache-poi.1045710.n5.n= abble.com/autoSizeColumn-setColumnWidth-passed-255-td4759807.html > > > Have you an idea how can I fix this? > > > Thank you. > > > Br, > > Adrian > > > > --001a1136fcbc4e5a35052f2fb93d--