Example #1
0
 /// <summary>
 /// Open a workbook from file and activate it. This closes the previously
 /// open workbook.
 /// </summary>
 public Workbook Open(string path)
 {
     this._openWorkbook = new Workbook(this._application, path);
     this._application.ActiveWorkbook = this._openWorkbook;
     return(this._openWorkbook);
 }
Example #2
0
 public Workbooks(Application application)
 {
     this._application  = application;
     this._openWorkbook = null;
 }
Example #3
0
 /// <summary>
 /// Create a new workbook and activate it. This closes the previously
 /// open workbook.
 /// </summary>
 public Workbook Add()
 {
     this._openWorkbook = new Workbook(this._application);
     this._openWorkbook.Activate();
     return(this._openWorkbook);
 }
Example #4
0
 public Worksheet(string name, Workbook workbook)
 {
     this._name     = name;
     this._workbook = workbook;
 }