// Create a new workbook Workbook workbook = new Workbook(); workbook.open(getResourceStream("xlsx/OleTemplates.xlsx")); // Save to an excel file workbook.save("ImportOleObjectsToWorkbookAndExport.xlsx");