Glad you fixed it yourself, but in the future you should not ignore any exceptions you got, but invesitgate them and in case you stucks, share them with us. Post them with the complete stacktrace. Exceptions tell something about the cause of the problem and thus, when you understand them, a solution should be obvious enough. You as developer should really know that better.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com