Hi, I am writing a small utility in Excel with Excel DNA. Including a code as follows:
public void Sub_Etransmit(IRibbonControl control)
{
Excel.Application xApp = (Excel.Application)ExcelDnaUtil.Application;
Excel.Workbook xBook = xApp.ActiveWorkbook;
// This is the code I need to ask
Array links = xBook.LinkSources(Excel.XlLink.xlExcelLinks);
}
When running the code it all notified the error 'Unable to cast object of type 'System.Object[*]' to type 'System.Object[]'.'. How can I fix this error?