public LateBindingApi.Excel.Workbook _Open(string filename, object updateLinks, object _readOnly, object format, object password, object writeResPassword, object ignoreReadOnlyRecommended, object origin, object delimiter, object editable, object notify, object converter, object addToMru)
        {
            object[] paramArray = new object[13];
            paramArray[0]  = filename;
            paramArray[1]  = updateLinks;
            paramArray[2]  = _readOnly;
            paramArray[3]  = format;
            paramArray[4]  = password;
            paramArray[5]  = writeResPassword;
            paramArray[6]  = ignoreReadOnlyRecommended;
            paramArray[7]  = origin;
            paramArray[8]  = delimiter;
            paramArray[9]  = editable;
            paramArray[10] = notify;
            paramArray[11] = converter;
            paramArray[12] = addToMru;
            object returnValue = Invoker.MethodReturn(this, "_Open", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
示例#2
0
        public LateBindingApi.Excel.Workbook Open()
        {
            object returnValue = Invoker.MethodReturn(this, "Open", null);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.Workbook _OpenXML(string filename)
        {
            object[] paramArray = new object[1];
            paramArray[0] = filename;
            object returnValue = Invoker.MethodReturn(this, "_OpenXML", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.Workbook Add(object template)
        {
            object[] paramArray = new object[1];
            paramArray[0] = template;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.Workbook get__Default(object index)
        {
            object[] paramArray = new object[1];
            paramArray[0] = index;
            object returnValue = Invoker.PropertyGet(this, "_Default", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
示例#6
0
        public LateBindingApi.Excel.Workbook Edit(object writeResPassword, object updateLinks)
        {
            object[] paramArray = new object[2];
            paramArray[0] = writeResPassword;
            paramArray[1] = updateLinks;
            object returnValue = Invoker.MethodReturn(this, "Edit", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.Workbook OpenXML(string filename, object stylesheets, object loadOption)
        {
            object[] paramArray = new object[3];
            paramArray[0] = filename;
            paramArray[1] = stylesheets;
            paramArray[2] = loadOption;
            object returnValue = Invoker.MethodReturn(this, "OpenXML", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }
        public IEnumerator GetEnumerator()
        {
            object    enumProxy  = Invoker.PropertyGet(this, "_NewEnum");
            COMObject enumerator = new COMObject(this, enumProxy);

            Invoker.Method(enumerator, "Reset", null);
            bool isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);

            while (true == isMoveNextTrue)
            {
                object itemProxy = Invoker.PropertyGet(enumerator, "Current", null);
                LateBindingApi.Excel.Workbook returnClass = new LateBindingApi.Excel.Workbook(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }
        public LateBindingApi.Excel.Workbook OpenDatabase(string filename, object commandText, object commandType, object backgroundQuery, object importDataAs)
        {
            object[] paramArray = new object[5];
            paramArray[0] = filename;
            paramArray[1] = commandText;
            paramArray[2] = commandType;
            paramArray[3] = backgroundQuery;
            paramArray[4] = importDataAs;
            object returnValue = Invoker.MethodReturn(this, "OpenDatabase", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Workbook newClass = new LateBindingApi.Excel.Workbook(this, returnValue);
            return(newClass);
        }