Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1DED3200D76 for ; Mon, 25 Dec 2017 05:13:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1BF82160C2F; Mon, 25 Dec 2017 04:13:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6200C160C1D for ; Mon, 25 Dec 2017 05:13:48 +0100 (CET) Received: (qmail 10865 invoked by uid 500); 25 Dec 2017 04:13:42 -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 10847 invoked by uid 99); 25 Dec 2017 04:13:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Dec 2017 04:13:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 25351180715 for ; Mon, 25 Dec 2017 04:13:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.424 X-Spam-Level: ** X-Spam-Status: No, score=2.424 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, FROM_MISSPACED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id uSihs0fq2nT6 for ; Mon, 25 Dec 2017 04:13:39 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 420115FB2E for ; Mon, 25 Dec 2017 04:13:39 +0000 (UTC) Received: from localhost (cust-asf2.ponee.io [163.172.22.184]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5B2D0E0373 for ; Mon, 25 Dec 2017 04:13:38 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Delete Column from a XSLFTable References: From: "jsaunders2011@gmail.com" In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: e493ddff212d8537b358967b0033bb3c5c2341dd Date: Mon, 25 Dec 2017 04:13:37 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Mon, 25 Dec 2017 04:13:49 -0000 I need to delete a column from a table in a PPT slide. I don't see an method on XSLFTable that will allow me to do this. I've experimented extensively with this, but it doesn't work properly: CTTableGrid tableGrid = table.getCTTable().getTblGrid(); CTTableCol[] columns = tableGrid.getGridColArray(); columns = ArrayUtils.remove(columns, columnIndexToDelete); tableGrid.setGridColArray(columns); It always seems to delete the last column of the table, regardless of the index passed in. I've also tried this: table.getCTTable().getTblGrid().removeGridCol(columnIndexToDelete); It results in the same behavior. Any suggestions? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org