コード例 #1
0
ファイル: MainForm.cs プロジェクト: TongEn/PicturesUploader
        private void ReadExcelFileInfo(string path)
        {
            ExcelWorkBookInfo fileInfo = null;

            try
            {
                using (UsingExcel xls = new UsingExcel())
                {
                    fileInfo = xls.ReadExcelFileInfo(path);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка чтения Excel"); }
            this.OpenedExcelFile = fileInfo;
        }
コード例 #2
0
        private void ReadExcelFileInfo(string path)
        {
            ExcelFileInfo fileInfo = null;

            try
            {
                using (UsingExcel xls = new UsingExcel())
                {
                    fileInfo = xls.ReadExcelFileInfo(path);
                }
            }
            catch (Exception ex)
            {
                ShowErrorMessage(ex, "Ошибка чтения Excel");
            }
            this.OpenedExcelFile = fileInfo;
        }