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