我已经到了最后一步,我需要调用我正确创建的"PasteAndFormat"
方法objContentLateBinded
,但现在我需要将“WdRecoveryType.wdFormatOriginalFormatting”值作为参数传递。WdRecoveryType 是后期绑定程序集的一部分"Microsoft.Office.Interop.Word"
,那么如何在我的代码中使用它来代替-parameters-?
这是有问题的行:
objContentLateBinded.GetType().InvokeMember("PasteAndFormat", BindingFlags.InvokeMethod, null, objContentLateBinded, -parameters-);