Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 20894 invoked from network); 30 Jul 2010 10:25:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jul 2010 10:25:41 -0000 Received: (qmail 77937 invoked by uid 500); 30 Jul 2010 10:25:41 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 77829 invoked by uid 500); 30 Jul 2010 10:25:39 -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 77817 invoked by uid 99); 30 Jul 2010 10:25:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 10:25:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_MESSAGE,MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.243.197.34] (HELO mail4.hostpark.net) (212.243.197.34) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 10:25:29 +0000 Received: from localhost (localhost [127.0.0.1]) by mail4.hostpark.net (Postfix) with ESMTP id B35254AAF6 for ; Fri, 30 Jul 2010 12:25:08 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail4.hostpark.net ([127.0.0.1]) by localhost (mail4.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id UZN4HmJ5Y-KF for ; Fri, 30 Jul 2010 12:25:08 +0200 (CEST) Received: from mstudermirai (247-22.62-188.cust.bluewin.ch [188.62.22.247]) by mail4.hostpark.net (Postfix) with ESMTP id 4CA0E49226 for ; Fri, 30 Jul 2010 12:25:08 +0200 (CEST) From: "Martin Studer" To: Subject: User-defined cell styles in HSSF and XSSF Date: Fri, 30 Jul 2010 12:25:12 +0200 Message-ID: <000901cb2fd1$7eb48060$7c1d8120$@studer@mirai-solutions.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01CB2FE2.423D5060" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acsv0X6HRW+RgrqrQLqgLrYEXbAQqw== Content-Language: de-ch X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_000A_01CB2FE2.423D5060 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, I'm using POI 3.7-beta1 and currently working with (user-)named CellStyles (HSSF and XSSF workbooks). For HSSF workbooks I wanted to do something like this: HSSFWorkbook wb = ... HSSFCellStyle cs = wb.createCellStyle(); cs.setUserStyleName(name); However, when I try to do that I get an "Unable to set user specified style names for built in styles!" exception. When I'm creating a new cell style, I shouldn't be getting a built-in style, should I? Also, for XSSF workbooks I currently didn't find a way to directly deal with user defined style names. Is this something which is planned for the 3.7 release? Thank you for your help, Martin ------=_NextPart_000_000A_01CB2FE2.423D5060--