Hi yogeshc99,
Since you are getting the error in 'Create Instance', this is the code from its code stage.
- Dim excel as Object = CreateObject("Excel.Application")
- excel.Caption = System.Guid.NewGuid().ToString().ToUpper()
- handle = GetHandle(excel)
In order to find the source of the error, keep commenting each line of code and see on which line the issue occurs.
For eg; at first, comment line no. 2 and 3. and keep only line 1.
If the same error occurs then it is because of CreateObject, in which case you can research on the web on the error "CreateObject Cannot create ActiveX component"
If it works fine then comment only line 3 and if error occurs then it is while creation of a new Guid...and so forth do your research depending on where it is occurring.