471,317 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How close Word object from within C#?

I'm trying to open the Word object model, read some text and then close the
document and app. But I get this.
Ambiguity between method 'Word._Document.Close(ref object, ref object, ref
object)' and non-method 'Word.DocumentEvents2_Event.Close'. Using method
group. D:\Win\Nightclub\Nightclub\frmMain.csAmbiguity between method
'Word._Application.Quit(ref object, ref object, ref object)' and non-method
'Word.ApplicationEvents4_Event.Quit'. Using method group.
D:\Win\Nightclub\Nightclub\frmMain.cs
Any idea how to get around it?
Thanks,

Ron
Jan 3 '06 #1
0 1012

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Roger Withnell | last post: by
2 posts views Thread by Eric Li | last post: by
6 posts views Thread by Chris | last post: by
4 posts views Thread by Lerp | last post: by
35 posts views Thread by Eric Sabine | last post: by
reply views Thread by Ronald S. Cook | 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.