Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 58426 invoked from network); 3 Jun 2009 19:00:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jun 2009 19:00:13 -0000 Received: (qmail 3241 invoked by uid 500); 3 Jun 2009 19:00:25 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 3223 invoked by uid 500); 3 Jun 2009 19:00:24 -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 3213 invoked by uid 99); 3 Jun 2009 19:00:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 19:00:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.76.154.140] (HELO mail1.npci.com) (63.76.154.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 19:00:15 +0000 Received: from [172.16.0.131] (mail.npcinternational.com [63.76.154.130] (may be forged)) by mail1.npci.com (MOS 3.10.5-GA) with ESMTP id CPA06919; Wed, 3 Jun 2009 13:59:55 -0500 (CDT) Message-Id: From: Jon Brisbin To: "POI Users List" In-Reply-To: <88A28197-0643-496D-A517-A76E1F816E99@jmlafferty.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Problems adding logo image to spreadsheet Date: Wed, 3 Jun 2009 13:59:54 -0500 References: <35ADF53A-A81E-4D2E-B6D3-303FD4B4030D@npcinternational.com> <23855274.post@talk.nabble.com> <88A28197-0643-496D-A517-A76E1F816E99@jmlafferty.com> X-Mailer: Apple Mail (2.935.3) X-Junkmail-Whitelist: YES (by domain whitelist at mail1.npci.com) X-Virus-Checked: Checked by ClamAV on apache.org On Jun 3, 2009, at 12:07 PM, Dave Fisher wrote: > Take a look at the thread starting March 18, 2009 by AKewalramani > and the subject of "Anchor type methods in XSSF" includes responses > from Yegor: > >>> This was easy to achieve in HSSF because the HSSFClientAnchor >>> class had a setAnchorType >>> method which I could set a value to "2" and the image would move >>> with the cell and it would >>> not resize itself as the cell size is changed. > > Regards, > Dave If I set the anchor type to "2", I still have to multiply the pixel height and width of my image by seemingly random values. In other words, if I multiply the width of my image by 5.4 and the height of my image by 3, I get a reasonable facsimile of the original inside my spreadsheet. Besides all of this being extraordinarily non-intuitive, I did search extensively for example code, etc... and couldn't find anything that says "to insert an image into your spreadsheet, keep A, B, and C, in mind...", citing the above strangeness. It would seem that the POI developers would have documented the fact that you have know the secret codes to enter to get the results you're looking for, especially if you simply have a requirement to generate a spreadsheet to email to a non-technical user and you've never done that before and you have heard about POI only second-hand and you don't have time to spend digging into the source code of the thing just so you can use it in a small, non-critical task. It's been a very frustrating experience so far, to say the least... Jon Brisbin Portal Webmaster NPC International, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org