I found the cause for this issue. When lotus notes 9 is installed, it removes some files relates to open office. Because of this the code not able to created ODS object. The solution is uninstall the open office and reinstall it. it should work now
Thank you