Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 55109 invoked from network); 9 Apr 2007 16:19:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2007 16:19:22 -0000 Received: (qmail 94869 invoked by uid 500); 9 Apr 2007 16:19:27 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 94784 invoked by uid 500); 9 Apr 2007 16:19:26 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 94773 invoked by uid 99); 9 Apr 2007 16:19:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 09:19:26 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [202.168.254.178] (HELO mail.bracuniversity.ac.bd) (202.168.254.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 09:19:14 -0700 Received: from mail.bracuniversity.ac.bd (localhost.localdomain [127.0.0.1]) by mail.bracuniversity.ac.bd (8.13.1/8.13.1) with ESMTP id l39GIlNX007893 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 9 Apr 2007 22:18:47 +0600 Received: (from apache@localhost) by mail.bracuniversity.ac.bd (8.13.1/8.13.1/Submit) id l39GIlRk007892; Mon, 9 Apr 2007 22:18:47 +0600 Received: from 202.51.183.242 (proxying for 192.168.50.23, 192.168.55.10) (SquirrelMail authenticated user zahurul); by mail.bracu.ac.bd with HTTP; Mon, 9 Apr 2007 22:18:47 +0600 (BDT) Message-ID: <57681.202.51.183.242.1176135527.squirrel@mail.bracu.ac.bd> In-Reply-To: <53043.202.51.183.242.1176134882.squirrel@mail.bracu.ac.bd> References: <2f24202b0704090605l1131b262labebd9f0d10723c@mail.gmail.com> <53043.202.51.183.242.1176134882.squirrel@mail.bracu.ac.bd> Date: Mon, 9 Apr 2007 22:18:47 +0600 (BDT) Subject: Re: hi plsss help me out From: zahurul@bracuniversity.ac.bd To: "POI Users List" User-Agent: SquirrelMail/1.4.3a-7.EL4 X-Mailer: SquirrelMail/1.4.3a-7.EL4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BRACU-MailScanner-OpenProtect-Information: Please contact the ISP for more information X-BRACU-MailScanner-OpenProtect: Found to be clean X-BRACU-MailScanner-OpenProtect-MCPCheck: X-BRACU-MailScanner-OpenProtect-From: zahurul@bracuniversity.ac.bd X-Virus-Checked: Checked by ClamAV on apache.org There was a mistake on my previous mail. This is OK: import java.io.FileInputStream; import org.apache.poi.hwpf.usermodel.*; import org.apache.poi.hwpf.HWPFDocument; import org.apache.poi.hwpf.*; public class HWPF { public static void main(String[] args) throws Exception{ HWPFDocument file; file = new HWPFDocument(new FileInputStream("c:\\ResumeFormat.doc")); Range range = file.getRange(); String dd = range.text()); System.out.println(dd); } } Zahurul www.zahurul.com > You are to close. Check this: > > import java.io.FileInputStream; > import org.apache.poi.hwpf.usermodel.*; > import org.apache.poi.hwpf.HWPFDocument; > import org.apache.poi.hwpf.*; > > public class HWPF { > public static void main(String[] args) throws Exception{ > HWPFDocument file; > file = new HWPFDocument(new FileInputStream("c:\\ResumeFormat.doc")); > Range range = file.getRange(); > String dd = file.text()); > System.out.println(dd); > } > } > > Zahurul > www.zahurul.com > >> when i tried this piece of code i am getting this error >> >> import java.io.FileInputStream; >> import org.apache.poi.hwpf.usermodel.*; >> import org.apache.poi.hwpf.HWPFDocument; >> import org.apache.poi.hwpf.*; >> >> public class HWPF { >> public static void main(String[] args) throws Exception{ >> HWPFDocument file; >> file = new HWPFDocument(new FileInputStream("c:\\ResumeFormat.doc")); >> String dd = file.getTextTable(); >> System.out.println(dd); >> } >> } >> >> >> error is >> >> C:\rajuwork>javac HWPF.java >> HWPF.java:10: incompatible types >> found : org.apache.poi.hwpf.model.TextPieceTable >> required: java.lang.String >> String dd = file.getTextTable(); >> ^ >> 1 error >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org > Mailing List: http://jakarta.apache.org/site/mail2.html#poi > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/