Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 92996 invoked from network); 12 Jan 2010 16:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 16:42:58 -0000 Received: (qmail 50706 invoked by uid 500); 12 Jan 2010 16:42:57 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 50688 invoked by uid 500); 12 Jan 2010 16:42:57 -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 50678 invoked by uid 99); 12 Jan 2010 16:42:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 16:42:57 +0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_LOCAL_NOVOWEL,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 16:42:47 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NUjp5-0007DM-9m for user@poi.apache.org; Tue, 12 Jan 2010 08:42:27 -0800 Message-ID: <27130460.post@talk.nabble.com> Date: Tue, 12 Jan 2010 08:42:27 -0800 (PST) From: MSB To: user@poi.apache.org Subject: Re: reading the drop down list cells In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: markbrdsly@tiscali.co.uk References: I have never needed to do anything like this and do not know the answer. Hoever, it looks as though you need to get at the DVRecord for the workbook/worksheet, I am not too sure which structure it is associated with yet but I would guess the latter. The first way I have seen to gain access to this record is the createDVRecord() method of the HSSFDataValidation class but that method is not static and so you need an instance of the HSSFDataValidation class and I cannot see how to get at that currently. If you have a good search through the javadocs for methods that return a DVRecord, that should be a good place to start I think. Hopefully, one of the developers who knows the structure far better than I will respond soon. Will keep looking myself and if anything else presents itself, I will post again. Yours Mark B VK123 wrote: > > When reading the spreadsheet how to identify the cell containing a drop > down list. After identifying I need to retrieve all the values in the > drop down list. > > Also when writing in to the existing spreadsheet I want to update the > selected value in the drop down list cell. > > Can some one please point me in the right on how to do these tasks using > POI. > > Regards, > > Vijayakumar Gowdaman > > > --- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and delete this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for > additional EU corporate and regulatory disclosures. > -- View this message in context: http://old.nabble.com/reading-the-drop-down-list-cells-tp27129805p27130460.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org