Ia ma trying to use a MS EXcel DataAnalysis tool through .Net as shown below. However I am running into a number of problems mainly though that the last line here expects 30 parameters, all bar one of which should be optional, and the compiler won't accept anything less. Plus these parameters are all generic object parameters with no indication as to their purpose. Does anyone know how to remedy this situation?
Basically I need to figure out how to properly employ the regression tool from Excel through C#.NET.
Thanks.
Basically I need to figure out how to properly employ the regression tool from Excel through C#.NET.
Thanks.
Code:
excelApp.AddIns.get_Item("Analysis ToolPak - VBA").Installed =true;
excelApp.Workbooks.Open(excelApp.LibraryPath + "\analysis\atpvbaen.xla",0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false);
excelApp.Run("ATPVBAEN.XLA!Regress",