예제 #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);
        }