On Fri, 16 Sep 2011, Les Walker wrote:
I am relatively new to POI and have a requirement to embed attachments to an XLS spreadsheet at various locations. From the examples found I can see how the objects get added to POIFS by creating a document node, but I am struggling understanding how to connect the rest of this through (it seems) the various record entries. Does anyone have an example of inserting an OLE object into an HSSFWorkbook (or POIFS filesystem) in its entirety - or point me to additional documentation that would help?

Probably your best bet is just to have a template with a dummy document embedded in it, and then update the embedded part with your real data. I've a feeling you also need to zap the cached rendering of the embedded part to force PowerPoint to update the picture of the embedded doc. (Otherwise it may still show the old one until you go into the embedded file)

There are all sorts of complicated links, as well as pre-rendered versions and other things that make doing it from scratch quite tricky. Not impossible, but hard enough you probably just want to use a template :)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to