Set image as header in Excel using Apache poi
I have below code to install Header for Excel using Apache-Poi
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet worksheet = workbook.createSheet("POI Worksheet");
Header header = worksheet.getHeader();
header.setCenter("Header");
Is it possible to set the image format (.jpg) instead of String as the title using Apache Poi,
that is,
Header header = worksheet.getHeader();
header.setCenter(image.jpg); // This is pseudo code
If there is a solution, let me know.
+3
source to share
No one has answered this question yet
Check out similar questions: