Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87691188CA for ; Thu, 17 Mar 2016 10:42:41 +0000 (UTC) Received: (qmail 36599 invoked by uid 500); 17 Mar 2016 10:42:41 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 36566 invoked by uid 500); 17 Mar 2016 10:42:41 -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 36555 invoked by uid 99); 17 Mar 2016 10:42:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2016 10:42:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5DF42C0221 for ; Thu, 17 Mar 2016 10:42:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MVAdmnfW-Ud3 for ; Thu, 17 Mar 2016 10:42:38 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 71ACF5F22F for ; Thu, 17 Mar 2016 10:42:37 +0000 (UTC) Received: from mail-wm0-f46.google.com ([74.125.82.46]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MhRI2-1aSq962sIk-00McWL for ; Thu, 17 Mar 2016 11:42:30 +0100 Received: by mail-wm0-f46.google.com with SMTP id l68so220697319wml.0 for ; Thu, 17 Mar 2016 03:42:30 -0700 (PDT) X-Gm-Message-State: AD7BkJKWPS/LZUwwfXKoTzMkA142Rd7qg2xgBTBcTEVrYTBKcadPjiUhMeWHfQ+izYULGvMdpTfYiCY2okDcBQ== MIME-Version: 1.0 X-Received: by 10.28.12.134 with SMTP id 128mr33267252wmm.18.1458211350330; Thu, 17 Mar 2016 03:42:30 -0700 (PDT) Received: by 10.28.211.207 with HTTP; Thu, 17 Mar 2016 03:42:30 -0700 (PDT) In-Reply-To: References: <4CBBBDD7FB566C4DB70EB7A04E0B466FC430B2@Exchange3.exchange2.metalexmfg.com> Date: Thu, 17 Mar 2016 11:42:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to open word document in android studio From: Dominik Stadler To: POI Users List Content-Type: multipart/alternative; boundary=001a1147e1968b46f6052e3c49f0 X-Provags-ID: V03:K0:Nse7gAYexGPb98niy0XtUfe9xPQHIkJBP+nIJ6DErsy0Q1Ln8HY HxZGGLmBfhbkhTCHk+juL/CI3uGUh8Aw+va/cr+7lqyCq+kQ02MeQTiOyaFiTzK3iFausmn 7S0AgYgck7tXY9rP78z91OYH0azEiYPMqIHTl9d9SyFiZEQZ/3OR0lmO2e4GvkM1GSOHJgL 7vaAJfdNoPrnqDzGupPvA== X-UI-Out-Filterresults: notjunk:1;V01:K0:8Nt3NS7D/EI=:MA+3cAZUXq/mZooYe0NPn4 hUEj7gqP/XSxeA9u83lKhNP8RsnRwto8KmsAXugCEj99h25kQ2LuXRnuORmxazg0HdFzk+FTn Wpcsw1yqA/h/XHHgsgzT+3WmDlNSX+FIwP8JiWNT/X+xmjCYHNT4xqMa/2XbfrJMn0uyuip3O /Q8sMwbteeBLMci57ng2XWOf4gLxFlY+Vz6disHrK8ZN0SpSeStotq6X4ujGwVcLiLH5wPyzI cG6l492VnM8KHL1tj+JXGqNsSoPr538is7NTQUC1wQQOfi1s/GEjArOCYcO4C4HSqutt6Xj/L EnIOcV9gyZK2O44CxXSWZeRkp/4p6NheJFGLhbV8l2unTxZ6GJNvYjyl0qsZnqC5lp7wbX6RD qdsYkpDgeJvd4W8o5QCbdqacbolNYYV1itxXcFO6MdWomLRxY8tguGG+NRrwjrDdzIbUVh+YR +I54IpUEZRU6m4kM9xh2ksG3yQ9D4DcExaORmrmduz6owVZZjoTpeBuq4p1p7NYIe/CWeE2dm qsg4Y287ZyNA/ZLsYHgpgnLZHdba9zyb9Ix/YerGneyTHbQSjCO83+Bl6/8c6w5LsZ2hurbBk cZUfk591T4IMsx3yivUPghrgGrK0AWU/CoeIHGjJAdqZWCeVbtrhgq//jKFUDLWUJQNJYEYaT kQik5MILPCVy/yW236XVwGgprhp+33mAVZfWYXh2f0qtA80d3IO3Y5ExyOpiv1POMlnsIRx6S 2zI96PYcOgw4pM099Tj4eMwpNNa2T+QFVTZ2KBLTe/bAQI/9GMFt2UTab47R40K7Wg/YyA/Ot KgLV5LH --001a1147e1968b46f6052e3c49f0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am not an Android expert at all, but it looks like the app-building step fails when invoking a java app as part of the Android-build-process, but it does not look anywhere related to POI at this point, so unless there is more output that you did not include which points at POI you are likely better off asking on a more Android focused forum/mailing list. Thanks... Dominik. On Thu, Mar 17, 2016 at 6:05 AM, Pratibha Mache wrote: > Thanks to all for quick response! > Actually I want,to read doc file from android studio and print that doc > file content on console. > > I am executing the read doc file program on android studio then it will > give me the following error: > > =C2=B3Error:Execution failed for task ':app:transformClassesWithDexForDeb= ug'. > > com.android.ide.common.process.ProcessException: > >org.gradle.process.internal.ExecException: Process 'command > >'/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/jav= a' > >' finished with non-zero exit value 1=C2=B2 > > But the same code I=C2=B9m executing on eclipse then it will perfectly ex= ecute > without any error. > And read that doc file and print it=C2=B9s content on console. > > I have attached zip file of my project which I was trying to run on > Android studio. > > > Thanking you, > Yours faithfully, > Pratibha Mache > > > > > On 16/03/16 10:25 pm, "Murphy, Mark" wrote: > > >This all makes sense up until the point that you say: However this code > >is working in eclipse... > > > >What code is working in eclipse? The app you are trying to create? Code > >you wrote (using the POI API) to retrieve the contents of a word doc and > >print it to the console? Or are you talking about going into eclipse, > >finding the document, and opening it from the project tree like you woul= d > >open a source file? If the latter, then it looks like Eclipse is actuall= y > >using Word as an external editor to open the document, and rendering it > >in a window within the eclipse workspace. You are going to have to talk > >to the Android Studio guys to see how Android Studio handles that, if > >indeed Android Studio is able to use Word as an external editor at all. = I > >would be willing to bet that this only works on Windows for Eclipse, > >though Eclipse may be able to use some other editor like Open Office on > >Linux. > > > >So bottom line, what exactly are you looking for? Such as: I am doing > >_____, or I am executing the following code: ______________, and > >________________ happens, but I expect ______________ to happen. Be as > >specific as you can. Include code or navigation paths. Then maybe someon= e > >here can help you. > > > >-----Original Message----- > >From: Pratibha Mache [mailto:Pratibha_Mache@symantec.com] > >Sent: Tuesday, March 15, 2016 11:59 PM > >To: user@poi.apache.org > >Subject: How to open word document in android studio > > > >Thank you for your quick response! > >Yes i'm trying to create an app, which actually view the doc file > >contents. > >But,as below you said that Apache POI doesn't provide any library to > >view the doc file. > >So,now I'm trying to only read the doc file content and print on console > >in android studio version 1.5. > >I want this to work in android studio version 1.5, but whenever I'm > >trying it is giving me an error which I am not able to understand. > >However this code is working in eclipse so maybe this problem is specifi= c > >to android studio. I just want to know if this library is compatible wit= h > >android studio or only eclipse. > >If it is compatible with android studio then please tell me the steps fo= r > >reading the doc file. Awaiting your response. > > > >Thanking you, > >Yours faithfully, > >Pratibha Mache > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: user-unsubscribe@poi.apache.org > >For additional commands, e-mail: user-help@poi.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org > For additional commands, e-mail: user-help@poi.apache.org > > --001a1147e1968b46f6052e3c49f0--