HWPF is still very much in the development phase and I do not think that it is possible to extract embedded objects from a Word document using the API; though I could very well be wrong. You do have a few options however depending upon your platform and requirement.
If you are running stand alone on a windows PC, then OLE could be a viable option I believe. OLE allows you to manipulate an 'instance' of Word and control it by executing VBA commands. Virtually evertything you can do with Word can be accomplished through OLE. OpenOffice can read and render all but the more complex Word documents. It has an interface - UNO - that you can use to perform similar operations to those you can through OLE. However, the interface is quite complex, the learning curve steep, speed of execution is quite slow and there are limits on the type of architecture your application could have. Yours Mark B PS Have you managed to extract embedded objects from a worksheet using HSSF? stigman wrote: > > I'm trying to read the embedded objects in a word doc and do not see any > methods within hwpf to access these objects like hssf and hslf have. Is > there a way to extract these objects, know what kind of objects they are? > Will I need to use the poifs directly and scrap my hwpf code? I've looked > on the internet and have come up empty. > -- View this message in context: http://www.nabble.com/read-embedded-objects-in-a-word-doc-tp24643756p24645115.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]
