using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
dynamic excel = Activator.CreateInstance(Type.GetTypeFromProgID("Excel.Application"));
excel.Visible = true;
Console.Read();
}
}
}
пятница, 4 февраля 2011 г.
C# code snipped: Create Excel instance using the dynamic keyword
The code below creates dynamic Excel.Application object without referencing the Excel COM server dll.
Подписаться на:
Комментарии к сообщению (Atom)
0 коммент.:
Отправить комментарий