The error basically says that the return type of
HWPFDocument.file.getTextTable() is not String but you are trying to assign
it to a String type variable.  You must see the javadoc of TextPieceTable
class to understand what is being returned by the method.

> -----Original Message-----
> From: Rajeshwar Mothe [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 09, 2007 6:05 PM
> To: [email protected]
> Subject: hi plsss help me out
> 
> 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: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to