Esempio n. 1
0
        public List <Workbook> GetOpenWorkbooks()
        {
            var result = new List <Workbook>();

            Console.WriteLine(MsExcel.GetInstance()._excelApplication.Workbooks.Count);
            var it = GetInstance()._excelApplication.Workbooks.GetEnumerator();

            {
                while (it.MoveNext())
                {
                    result.Add(new Workbook((Excel.Workbook)it.Current));
                }
            }
            return(result);
        }
Esempio n. 2
0
 public void Open(String Name)
 {
     MsExcel.GetInstance()._excelApplication.Workbooks.Open(Name);
 }