Hi, Sharma, Gaurav wrote:
Exception should be generated and caught in any of the catch block.
What particular exception are you expecting in your case? Some errors are not thrown as exceptions and you should provide error handler with setErrorHandler method to handle this. DOMPrint project in samples folder demonstrates this. Good luck! Vitaly