I can advise you some variants: OO SDK, OOLib, LibOpenOffice. I'm using LibOpenOffice. Compared with the other components it is more reliable.