ActiveDocument.Close() (.NET 1.0 vs 1.1)

B

ben

All-

I have created a protype in VB.NET 1.1. After the prototype, I was informed
that my development was to be done in 1.0, not 1.1. Not a big deal, until I
try to close a document. Here is my code

ActiveDocument.Close(Word.WdSaveOptions.wdDoNotSaveChanges)

Like I said, it works fine in VB.NET 1.1, but not VB.NET 1.0. Below is the
error I get

'Close' is ambiguous across the inherited interfaces 'Word._Document' and
'Word.DocumentEvents2_Event'.

I am at a lost for what could be causing this error.

Thanks for any help
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?YmVu?=,
'Close' is ambiguous across the inherited interfaces 'Word._Document' and
'Word.DocumentEvents2_Event'.
See this Knowledge Base article from the msdn site

http://support.microsoft.com/default.aspx?scid=kb;en-us;315981

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top