Thursday 15 August 2013

Docx file read to null in java

Docx file read to null in java

private static WordprocessingMLPackage getTemplate(String name) throws
Docx4JException, FileNotFoundException {
WordprocessingMLPackage template = WordprocessingMLPackage.load(new
FileInputStream(new
File("C:\\Users\\nitspl\\Desktop\\template001.docx")));
return template;
}

No comments:

Post a Comment