AAaron123
2008-05-17 01:10:52 UTC
The instructions below produce the error shown.
Why is it even considering ApplicationEvents4_Event
rather than Application?
Microsoft.Office.Interop.Word.Application WordApp =
new Microsoft.Office.Interop.Word.Application();
private object emptyItem = System.Reflection.Missing.Value;
private object oFalse = false;
WordApp.Quit(ref oFalse, ref emptyItem, ref emptyItem);
Warning 1 Ambiguity between method
'Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref
object)' and non-method
'Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit'. Using method
group.
======
Also, I can't find the reference that goes with the following:
using Microsoft.Office.Core;
=======
Can you explain what is going on?
Thanks
Why is it even considering ApplicationEvents4_Event
rather than Application?
Microsoft.Office.Interop.Word.Application WordApp =
new Microsoft.Office.Interop.Word.Application();
private object emptyItem = System.Reflection.Missing.Value;
private object oFalse = false;
WordApp.Quit(ref oFalse, ref emptyItem, ref emptyItem);
Warning 1 Ambiguity between method
'Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref
object)' and non-method
'Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit'. Using method
group.
======
Also, I can't find the reference that goes with the following:
using Microsoft.Office.Core;
=======
Can you explain what is going on?
Thanks