On Wed, 22 Aug 2012, kavinhub wrote:
Very simple sample code as below:
//read the temaplate excel with embed object
String filePathIn = "templdate.xls";
fs = new POIFSFileSystem(new FileInputStream(filePathIn));
HSSFWorkbook wb = new HSSFWorkbook(fs);

You probably want to pass the preserveNodes boolean in to the constructor, with the true flag:
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFWorkbook.html#HSSFWorkbook%28org.apache.poi.poifs.filesystem.DirectoryNode,%20boolean%29

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to