Hello Adam, Can I ask what file format you are targetting please? Are you going to be processing the binary (.xls) or OpenXML file (.xlsx)?
The reason I ask is that on the HSSFSheet, there is a getDrawingPatriarch() method defined whilst on the XSSFWorkbook there is only a createDrawingPatriarch() method. To be honest, I do not know if it will have any impact but with the example in the Quick Guide - which is written so that it applies equally to binary and xml based files - suggesting that existing drawings may be deleted, I wondered if the 'may be' related more to the XSSF stream than the HSSF stream. Aside from that I am not going to be of any help, sorry. Yours Mark B Adam Kayser wrote: > > In the poi documentation it says..... > > "It should be noted that any existing drawings may be erased once you > add a image to a sheet" > > What I was wondering is there a way to get around this? Will this > always be a case? Is it a current bug? Is there a way to say leave > the image in the document? Our software reads in an excel file that > is used as a template. Our customers have their logos built into it > their own excel files and when we export some of our data it has > images in it. when our images are written out to the excel document > the customer logos have been removed. I have searched for a solution > and haven't been able to find one. I was wondering if anyone has had > this issue before. > Thanks > Adam > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Adding-an-image-tp24115634p24136011.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]
