Excel Interop Example : Excel : Windows C# Examples


C# Examples » Windows » Excel »

 

Excel Interop Example









    
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"  );
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Excel