Exemplo n.º 1
0
        private void _startupControl_OpenFiles(object sender, string filePath)
        {
            Excel.Workbook book = Application.Workbooks.Add();

            try {
                book.Initialize(filePath, _settings);
                _workbookList.Add(book);
            }
            catch
            {
                book.Close(SaveChanges: false);
                return;
            }
        }