https://issues.apache.org/bugzilla/show_bug.cgi?id=53058
--- Comment #10 from Evgeniy Berlog <[email protected]> 2012-04-15 15:45:06 UTC --- Created attachment 28610 --> https://issues.apache.org/bugzilla/attachment.cgi?id=28610 The copy of workbook.xls made by POI Code for copying workbook.xls into target.xls: public static void main(String[] args) { String input = "workbook.xls"; String output = "target.xls"; try{ POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(input)); HSSFWorkbook workbook = new HSSFWorkbook(fs); HSSFSheet sheet = workbook.getSheetAt(0); HSSFPatriarch patriarch = sheet.createDrawingPatriarch(); FileOutputStream fileOut = new FileOutputStream(output); workbook.write(fileOut); fileOut.close(); } catch(IOException e){ System.out.println("Can't open file "+input+" or "+output); System.exit(1); } } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
