Hi,
calling
```
ExcelApi.Application.GetActiveInstances()
```
with an open Excel instance which has no workbooks visibly opened (i.e. start excel and close or hide the default workbook) causes a NullReferenceException.
I tracked it down to the excel hot fix in GetActiveProxiesFromROT and the subsequent proxy lookup by hWnd.
If no workbook is visible there seems to be no EXCEL7 window and the lookup returns a null reference, which then causes the NullReferenceException on COMObject instantiation.
Best regards,
Andreas
Comments: ** Comment from web user: SebastianDotNet **
calling
```
ExcelApi.Application.GetActiveInstances()
```
with an open Excel instance which has no workbooks visibly opened (i.e. start excel and close or hide the default workbook) causes a NullReferenceException.
I tracked it down to the excel hot fix in GetActiveProxiesFromROT and the subsequent proxy lookup by hWnd.
If no workbook is visible there seems to be no EXCEL7 window and the lookup returns a null reference, which then causes the NullReferenceException on COMObject instantiation.
Best regards,
Andreas
Comments: ** Comment from web user: SebastianDotNet **
thanks for the notification. the main problem behind is: you can see all COM instance in ROT but only the first is accessible. This is why GetActiveObject in VB6/VBA has the same problem. You can't decide which instance you want and i've been implemented the hotfix.
Is it NetOffice 1.7.3 ?
I want change the implementation this weekend.
*Sebastian