Пример #1
0
        public string filter(int index)
        {
            IntPtr pStr = xlFilterColumnFilter(handle, index);

            if (pStr == (IntPtr)0)
            {
                throw new Exception(book.errorMessage());
            }
            String s = Marshal.PtrToStringAuto(pStr);

            return(s);
        }
Пример #2
0
        public string readStr(int row, int col)
        {
            IntPtr formatHandle = (IntPtr)0;
            string s            = xlSheetReadStr(handle, row, col, ref formatHandle);

            if (s == null)
            {
                throw new Exception(book.errorMessage());
            }
            return(s);
        }