Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 26911 invoked from network); 18 Dec 2010 13:59:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 13:59:20 -0000 Received: (qmail 74717 invoked by uid 500); 18 Dec 2010 13:59:20 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 74610 invoked by uid 500); 18 Dec 2010 13:59:20 -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 74601 invoked by uid 99); 18 Dec 2010 13:59:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 13:59:19 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nanlei1987@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-wy0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 13:59:12 +0000 Received: by wyb28 with SMTP id 28so1508663wyb.33 for ; Sat, 18 Dec 2010 05:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=tpHU6qiDzOqwlB1ld0q8MKnHRlZVqIjiEx0VKhyrqp4=; b=IKJOXZma3qZmI626YTy8FR81+saAi1epU7+G8tTudFKDa9LP4WDBingrsGHGbmtuG0 DAZEvHxuhFuHQcVVyBGUVKpkd2QQDL+PST/BYkrv6C3OtGqTR8tw4VeamYoh0wE12Kc3 7jnOFpRvjiFD1f1aWKvQpPe9egbMB6Qu6Qvy4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GnB659dnJmv8fEFL6/Yja+/z4jO6hWmTbjonqAqRxKYJ9oN+mKzeZVU8TANxUMKWMs PpQTKaTGcjX6STjEW4RKxyE6bPJgEXnUm+okYwEwb2gcY6a+4ZxmTTV30RjCfengnBJ8 uf52IS2hSKqa+UB4VEpcrehLJwffeCR5DU3MI= MIME-Version: 1.0 Received: by 10.216.82.9 with SMTP id n9mr2521774wee.35.1292680731344; Sat, 18 Dec 2010 05:58:51 -0800 (PST) Received: by 10.216.72.139 with HTTP; Sat, 18 Dec 2010 05:58:51 -0800 (PST) In-Reply-To: <1292675379355-3310406.post@n5.nabble.com> References: <4D0C96A9.8080005@mbcli.com> <1292675379355-3310406.post@n5.nabble.com> Date: Sat, 18 Dec 2010 21:58:51 +0800 Message-ID: Subject: Re: How to write the metadata into the document. From: Nan Lei To: POI Users List Content-Type: multipart/alternative; boundary=0016e6de17baccbe440497afaf13 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6de17baccbe440497afaf13 Content-Type: text/plain; charset=UTF-8 Hi Mark, Thank you for your sample code, I test it and it works. The important line is this.workbook.createInformationProperties(); If has no this line, a java.lang.NullPointerException will be thrown, so I think this line allow us to customerize the properties. Many thanks for your help. Have a good time of the Christmas week. Best Wishes! Nan Lei --0016e6de17baccbe440497afaf13--