D
Dmitry Nogin
Hi,
The following code works well for MS Excell but fails on MS Word...
Can you suggest anything? (.NET 2.0)
Type wordType = Type.GetTypeFromProgID("Word.Application");object
wordApplication = Activator.CreateInstance(wordType);
object margins = wordType.InvokeMember("InchesToPoints",
BindingFlags.InvokeMethod,
null, wordApplication, new object[] { (double)1 });
The following code works well for MS Excell but fails on MS Word...
Can you suggest anything? (.NET 2.0)
Type wordType = Type.GetTypeFromProgID("Word.Application");object
wordApplication = Activator.CreateInstance(wordType);
object margins = wordType.InvokeMember("InchesToPoints",
BindingFlags.InvokeMethod,
null, wordApplication, new object[] { (double)1 });