R
Robin Harmsen
in Early binding someone does something like this:
using Word = Microsoft.Office.Interop.Word;
Word.Application wordApp;
wordApp = new Word.Application();
Word.Document wordDoc = wordApp.Documents.Open( ..... )
wordDoc.ComputeStatistics(Word.WdStatistic.wdStatisticPages,true);
how can I translate this to early binding?
I got the folowing code
object[] Parameters = new Object[2];
Parameters[0] = ???;
Parameters[1] = true;
wordDoc.GetType().InvokeMember(
"ComputeStatistics",BindingFlags.InvokeMethod,null,wordTemplate,
Parameters);
but I am not able to build the first parameter
(Word.WdStatistic.wdStatisticPages)
Robin Harmsen
using Word = Microsoft.Office.Interop.Word;
Word.Application wordApp;
wordApp = new Word.Application();
Word.Document wordDoc = wordApp.Documents.Open( ..... )
wordDoc.ComputeStatistics(Word.WdStatistic.wdStatisticPages,true);
how can I translate this to early binding?
I got the folowing code
object[] Parameters = new Object[2];
Parameters[0] = ???;
Parameters[1] = true;
wordDoc.GetType().InvokeMember(
"ComputeStatistics",BindingFlags.InvokeMethod,null,wordTemplate,
Parameters);
but I am not able to build the first parameter
(Word.WdStatistic.wdStatisticPages)
Robin Harmsen