471,594 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

Word application quit ambiguity

I tried to close the word document object and word application:
private Interop.Word.Application WordApp;
private Interop.Word.Document WordDoc;

// close word and quit word application

WordDoc.Close(ref _newMissing, ref _newMissing, ref _newMissing);
WordApp.Application.Quit(ref _notTrue,
ref _newMissing,
ref _newMissing);

However, I got warning from VS 2005:

Warning 38 Ambiguity between method 'Interop.Word._Document.Close(ref
object, ref object, ref object)' and non-method
'Interop.Word.DocumentEvents2_Event.Close'. Using method group.

Warning 39 Ambiguity between method 'Interop.Word._Application.Quit(ref
object, ref object, ref object)' and non-method
'Interop.Word.ApplicationEvents4_Event.Quit'. Using method group.

Not sure how to fix that ?


Nov 10 '06 #1
0 3776

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ronald S. Cook | last post: by
reply views Thread by Ronald S. Cook | last post: by
1 post views Thread by Ronald S. Cook | last post: by
reply views Thread by Alan T | last post: by
14 posts views Thread by Alan T | last post: by
2 posts views Thread by Alan T | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.