AuScGen.CommonUtilityPlugin.ExcelReader.InitializeWorkbook C# (CSharp) Method

InitializeWorkbook() private method

Initializes the workbook.
private InitializeWorkbook ( string path ) : void
path string The path.
return void
        private void InitializeWorkbook(string path)
        {
            using (FileStream file = new FileStream(path, FileMode.Open, FileAccess.Read))
            {
                try
                {
                    xssfworkbook = new XSSFWorkbook(file);
                }
                catch(NullReferenceException e)
                {
                    string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                    throw new ResourceException(e);
                }
            }
        }