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