예제 #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);
 }
예제 #2
0
 public Workbooks(Application application)
 {
     this._application  = application;
     this._openWorkbook = null;
 }
예제 #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);
 }
예제 #4
0
 public Worksheet(string name, Workbook workbook)
 {
     this._name     = name;
     this._workbook = workbook;
 }