// Create a new workbook Workbook workbook = new Workbook(); IWorksheet ws = workbook.getWorksheets().get(0); Object[][] data = new Object[][] { {"Name", "City", "Birthday", "Eye color", "Weight"}, {"Richard", "New York", new GregorianCalendar(1968, 6, 8), "Blue", 67}, {"Nia", "New York", new GregorianCalendar(1972, 7, 3), "Brown", 62}, {"Jared", "New York", new GregorianCalendar(1964, 3, 2), "Hazel", 72} }; ws.getRange("A1:E4").setValue(data); ws.getRange("A:E").getEntireColumn().setColumnWidth(ws.getRange("A:E").getEntireColumn().getColumnWidth() * 1.5); ws.getRange("A1:E1").getInterior().setColor(Color.FromArgb(68, 114, 196)); ws.getRange("A1:E1").getFont().setColor(Color.GetWhite()); ws.getRange("A1:E4").getBorders().setColor(Color.FromArgb(91, 155, 213)); ws.getRange("A1:E4").getBorders().setLineStyle(BorderLineStyle.Thin); //add camera picture ws.getShapes().addCameraPicture("$A$1:$E$4", 398, 0, 347, 58); // Save to an excel file workbook.save("AddCameraPicture.xlsx");