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