Discussion:
Microsoft.Office.Interop.Word.Application questions
(too old to reply)
AAaron123
2008-05-17 01:10:52 UTC
Permalink
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
Vic Berry
2010-09-19 00:01:46 UTC
Permalink
There is a great answer to this question at the following link
http://support.microsoft.com/kb/315981
Post by AAaron123
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.
======
using Microsoft.Office.Core;
=======
Can you explain what is going on?
Thanks
Submitted via EggHeadCafe - Software Developer Portal of Choice
Book Review: Excel 2010 - The Missing Manual [OReilly]
http://www.eggheadcafe.com/tutorials/aspnet/7d211741-221d-46c7-b9c3-d34bf84568be/book-review-excel-2010--the-missing-manual-oreilly.aspx
Continue reading on narkive:
Search results for 'Microsoft.Office.Interop.Word.Application questions' (Questions and Answers)
18
replies
Why does everyone use this? Why not google search?
started 2006-05-14 04:04:41 UTC
society & culture
Loading...