Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ben - 27 Jun 2005 21:12 GMT
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
Cindy M  -WordMVP- - 30 Jun 2005 16:00 GMT
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 :-)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.