Hi! I'm reading a XLS file for changing its content. Then, I add a footer to
that file. Thing is, the XLS contains a logo, but when I print the footer,
which is a textbox) the image dissapears.
I print my footer like this:
HSSFWorkbook hwb = new HSSFWorkbook();
HSSFSheet sheet = hwb.getSheetAt(indexOfSheet);
HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
HSSFTextbox textbox1 = patriarch.createTextbox
(new HSSFClientAnchor(0,0,0,0,(short)1,1,(short)10,10));
textbox1.setLineStyle(HSSFTextbox.LINESTYLE_NONE);
HSSFRichTextString str=new HSSFRichTextString(myMessageString);
str.applyFont((short)0);
textbox1.setString(str);
FileOutputStream fileOut = new
FileOutputStream("c:\\createBox.xls");
hwb.write(fileOut);
fileOut.close();
Any ideas? am I doing something wrong?
Thanks!
--
View this message in context:
http://www.nabble.com/HSSFPatriarch-deletes-images-tp18695133p18695133.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]