471,354 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How close Word object from C#?

I'm trying to open the Word object model, read some text and then close the
document and app. But I get this when trying to close the document and
application...

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.cs
Ambiguity 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 1221

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
4 posts views Thread by Lerp | last post: by
reply views Thread by Ronald S. Cook | last post: by
15 posts views Thread by Mahernoz | last post: by
10 posts views Thread by Miro | last post: by
reply views Thread by XIAOLAOHU | 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.