Excel Interop Example : Excel « Windows « C# / CSharp Tutorial






using System;
using System.Runtime.InteropServices;

class MainClass
{
  [STAThread]
  static void Main(string[] args)
  {
    Excel.Application app = new Excel.ApplicationClass();
    app.Visible = true;
    app.Workbooks.Add( VarEnum.VT_NULL );
    app.ActiveCell.set_Value( Excel.XlRangeValueDataType.xlRangeValueDefault, "Hello excel" );
  }
}








29.15.Excel
29.15.1.Excel Interop Example
29.15.2.BindToMoniker Excel
29.15.3.Excel workbook event handlers