HighTechTalks DotNet Forums  

VSTO Assemblies on an Office 2007 Add-in

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss VSTO Assemblies on an Office 2007 Add-in in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
pacp
 
Posts: n/a

Default VSTO Assemblies on an Office 2007 Add-in - 10-09-2008 , 01:19 PM






Greetings,

A wizard generated VSTO project adds the following references to the project:

Microsoft.Office.Interop.Word
Microsoft.Office.Tools.Common.v9.0
Microsoft.Office.Tools.v9.0
Microsoft.VisualStudio.Tools.Applications.Runtime. v9.0

As parto of VSTO, there is also a Microsoft.Office.Tools.Word.v9.0.

Can someone please explain the differences between
Microsoft.Office.Interop.Word and Microsoft.Office.Tools.Word.9.0? I am sure
the interop one just wraps ActiveX objects for .NET but what is on the second
one? When should I use one or the other?


Reply With Quote
  #2  
Old   
Cindy M.
 
Posts: n/a

Default Re: VSTO Assemblies on an Office 2007 Add-in - 10-27-2008 , 04:15 AM






Quote:
A wizard generated VSTO project adds the following references to the project:

Microsoft.Office.Interop.Word
Microsoft.Office.Tools.Common.v9.0
Microsoft.Office.Tools.v9.0
Microsoft.VisualStudio.Tools.Applications.Runtime. v9.0

As parto of VSTO, there is also a Microsoft.Office.Tools.Word.v9.0.

Can someone please explain the differences between
Microsoft.Office.Interop.Word and Microsoft.Office.Tools.Word.9.0? I am sure
the interop one just wraps ActiveX objects for .NET but what is on the second
one? When should I use one or the other?

Interop.Word is the Word object model, as presented to the .NET interface by the
Word PIA. Basically, it's the same thing all programmers have to work with,
whether they use classical VB, VBA, C++ or managed code.

Tools.Word are the extensions provided by the VSTO technology. For example, VSTO
"wraps" bookmark objects present at *design* time, making it possible for you to
link a bookmark to a data set and/or the data cache. It also "streamlines"
coding in some respects (provides the bookmarks as objects in your solution
and you can use Bookmark.Text rather than Bookmark.Range.Text).

When you create a VSTO document-level solution you can use either or both,
depending on what you want to do.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.