Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 72307 invoked from network); 7 Sep 2009 17:29:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 17:29:25 -0000 Received: (qmail 83270 invoked by uid 500); 7 Sep 2009 17:29:24 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 83239 invoked by uid 500); 7 Sep 2009 17:29: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 83229 invoked by uid 99); 7 Sep 2009 17:29:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 17:29:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sanjay.baberwal@gmail.com designates 209.85.216.192 as permitted sender) Received: from [209.85.216.192] (HELO mail-px0-f192.google.com) (209.85.216.192) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 17:29:15 +0000 Received: by pxi30 with SMTP id 30so2510965pxi.18 for ; Mon, 07 Sep 2009 10:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=jaR2s4VpzhRIDSEwmvCzlId/ZcTjSi/IpdM0N5PJjdw=; b=DcL+RfaZeSWmgG+nVC18mAk0VxZTQienDkylUX1q/FDCW6S+F1EW9i6grOZZE/BD6n db/bDQLafWZRK1tlIdOXALiSXjq+1mqH9jRflEvsiS8bFrUq/KoS3wkxYwWGM6WmsZ0F oVulefSKLwh1h/SbyylHEU/oJSVoxIL+kvD+k= 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=kmuWv8Ktkq70z5c2SuZwPw8tp4SWrG1BbIJP3+GRiK/S7g+NaayFIlVqA4tlRjXVit hCJrvsoeQ0bSImFwwhtncthy+H9ltKYLuT+x3Uh+IrDQnFxgizttoZktQ9n/k/XuhgLR jUrf7/tf5vUiVX0D0mHSQmukqdANWgfVmfaIM= MIME-Version: 1.0 Received: by 10.114.253.14 with SMTP id a14mr15797865wai.160.1252344533611; Mon, 07 Sep 2009 10:28:53 -0700 (PDT) In-Reply-To: <2e54db8f0909070054u5c70d501m18553fa9986a66a7@mail.gmail.com> References: <2e54db8f0909070054u5c70d501m18553fa9986a66a7@mail.gmail.com> Date: Mon, 7 Sep 2009 10:28:53 -0700 Message-ID: <2e54db8f0909071028l5512c1a7ib96c572d948f11fb@mail.gmail.com> Subject: Re: Need help with SimpleDocument From: sanjay baberwal To: user@poi.apache.org Content-Type: multipart/alternative; boundary=0016e68789e60ff4690473002fd6 X-Virus-Checked: Checked by ClamAV on apache.org --0016e68789e60ff4690473002fd6 Content-Type: text/plain; charset=ISO-8859-1 For some reason the message was not posted: HI All, I am a noob learning about POI, I have Ubuntu 9.04 with OpenOffice 3.1 and wanted to create a docx file programmatically. I ran this SimpleDocument.java from POI 3.5beta6 and it created a 'simple.docx' file with no readable data when opened with OpenOffice. The file size is 2.1kb. Thanks in advance! On Mon, Sep 7, 2009 at 12:54 AM, sanjay baberwal wrote: > HI All, > I am a noob learning about POI, I have Ubuntu 9.04 with OpenOffice 3.1 and > wanted to create a docx file programmatically. > I ran this SimpleDocument.java from POI 3.5beta6 and it created a > 'simple.docx' file with no readable data when opened with OpenOffice. The > file size is 2.1kb. > > Please help me understand what am I missing. > Thank you in advance. > > Attaching the two files SimpleDocument.java and the output simple.docx. > > -- > Regards, > Sanjay > 732 779 5130 > -- Regards, Sanjay 732 779 5130 --0016e68789e60ff4690473002fd6--