I've used the jexcel api which was created by AndyKhan (I think). Just google jexcel and you'll findit.