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 E8EB54D5D for ; Tue, 5 Jul 2011 15:32:55 +0000 (UTC) Received: (qmail 74432 invoked by uid 500); 5 Jul 2011 15:32:55 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 74412 invoked by uid 500); 5 Jul 2011 15:32:54 -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 74404 invoked by uid 99); 5 Jul 2011 15:32:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 15:32:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [82.113.129.100] (HELO sam.vianet.co.uk) (82.113.129.100) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 15:32:48 +0000 X-PMWin-Version: 3.0.0.0, Antivirus-Engine: 3.20.2, Antivirus-Data: 4.66G Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: XSSF Locking X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4721 Date: Tue, 5 Jul 2011 16:32:26 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XSSF Locking thread-index: Acw7KL5kMGP8XEfJR8S8OrzIdFQLCw== From: "Alex Panayotopoulos" To: Hi all, Can anybody get the XSSF sheet locking functionality working? I've been testing it, but so far it looks like either *everything* is locked, or nothing is. If I execute: XSSFWorkbook wb =3D new XSSFWorkbook(); XSSFSheet s =3D wb.createSheet("Locking"); s.lockDeleteColumns(); s.enableLocking(); wb.lockStructure(); save(wb, "locking.xlsx"); Then I would expect a worksheet that allows all changes except column deletion. However, the result is a completely locked-down worksheet, similar to what I would get with a "protectSheet()" call. If I comment out the "s.enableLocking()" line, then *all* changes are permitted. How do I disable *just* column deletion? N.B. I did find one other thread on this list about this problem, but the example code did not solve the problem. I also searched for open issues in Bugzilla, but found none. Should I open a new bug? Thanks, Alex Panayotopoulos, Software Engineer ViaTelemetry Limited --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org