C#2005 Раннее связывание
using System.Collections.Generic;
using System.Windows.Forms;
namespace WindowsApplication1
{
class Program
{
Excel.Application app;
Excel.Workbook myBook;
Excel.Worksheet mySheet;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
{
Excel.Application app = new Excel.Application();
app.Visible = true;
}
}
}
}
Как можно добавить книгу и листы?:eek: