Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 97848 invoked from network); 1 Jul 2010 21:27:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 21:27:24 -0000 Received: (qmail 23109 invoked by uid 500); 1 Jul 2010 21:27:23 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 23025 invoked by uid 500); 1 Jul 2010 21:27:23 -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 23017 invoked by uid 99); 1 Jul 2010 21:27:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 21:27:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of guhar@mail.nih.gov designates 128.231.90.110 as permitted sender) Received: from [128.231.90.110] (HELO nihxway2out.hub.nih.gov) (128.231.90.110) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 21:27:14 +0000 X-IronPortListener: Outbound_SMTP Received: from unknown (HELO NIHHT01.nih.gov) ([156.40.71.20]) by nihxway2out.hub.nih.gov with ESMTP; 01 Jul 2010 17:26:53 -0400 Received: from NIHMLBX02.nih.gov ([156.40.71.32]) by NIHHT01.nih.gov ([156.40.71.20]) with mapi; Thu, 1 Jul 2010 17:26:52 -0400 From: "Guha, Rajarshi (NIH/NHGRI) [C]" To: "user@poi.apache.org" Date: Thu, 1 Jul 2010 17:26:51 -0400 Subject: Inserted images don't move with cells Thread-Topic: Inserted images don't move with cells Thread-Index: AcsZZB6Ke/9tTtLD9UWFsG1M5z/8SA== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using POI 3.6 and the HSSF model to generate a spreadsheet with images in a column, along with numbers in an adjacent column. The code I'm using specifically calls anchor.setAnchorType(0); =20 To indicate that the images should move with the cells. But when I sort the two columns, based on column A, the images don't seem to move with the cells. That is, if column A is sorted in descending order, the value 18 get= s an image in its row, whereas it should not. The code is available at http://gist.github.com/460578 (though any PNG can be used in place of the one referenced in the code). Is my code wrong? Or have I misunderstood the idea of images moving with cells? Thanks, --=20 Rajarshi Guha NIH Chemical Genomics Center =20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org