Beispiel #1
0
        public NetOffice.ExcelApi.WorkbookConnection AddConnection(NetOffice.ExcelApi.WorkbookConnection connectionToDataSource)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(connectionToDataSource);
            object   returnItem  = Invoker.MethodReturn(this, "AddConnection", paramsArray);

            NetOffice.ExcelApi.WorkbookConnection newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.WorkbookConnection.LateBindingApiWrapperType) as NetOffice.ExcelApi.WorkbookConnection;
            return(newObject);
        }
Beispiel #2
0
        public NetOffice.ExcelApi.WorkbookConnection CreateModelWorkbookConnection(object modelTable)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(modelTable);
            object   returnItem  = Invoker.MethodReturn(this, "CreateModelWorkbookConnection", paramsArray);

            NetOffice.ExcelApi.WorkbookConnection newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.WorkbookConnection.LateBindingApiWrapperType) as NetOffice.ExcelApi.WorkbookConnection;
            return(newObject);
        }
Beispiel #3
0
 public NetOffice.ExcelApi.WorkbookConnection AddConnection(NetOffice.ExcelApi.WorkbookConnection connectionToDataSource)
 {
     return(Factory.ExecuteKnownReferenceMethodGet <NetOffice.ExcelApi.WorkbookConnection>(this, "AddConnection", NetOffice.ExcelApi.WorkbookConnection.LateBindingApiWrapperType, connectionToDataSource));
 }