アセンブリを動的にロードして、そのタイプの変数を作成しようとしています。
Assembly Ass= Assembly.LoadFrom(@"d:\abc\microsoft.office.interop.excel.dll");
foreach(Type Excel Assembly.Gettypes())
{
// here now Type contains
// Excel.nameSpace="microsoft.officce.interop.excel"
// now i need to creae an variable of type "Excel"
microsoft.officce.interop.excel.applicationClass excel= null;
// something like this
//Here Excel is my nameSpace
Excel.officce.interop.excel.applicationClass excel= null
}
私は過去2日間からこれに取り組んでおり、Excelタイプ(作成する必要のあるタイプ)の変数を宣言する方法を教えてください
どんな助けでも大いに感謝します