Microsoft Office Tutorials and References
In Depth Information
Working with objects and documents
3.
In the next step of the Publish Wizard , select From a CD-ROM or
DVD-ROM . By specifying CD-ROM or DVD-ROM, you're telling the
publishing wizard that the installation path is the same as the publish
path. Click Next .
4.
The Publish Wizard displays the publish location and declares itself ready to
publish. Click Finish to publish the solution.
After you complete these steps, you can run the sample solution by opening
the WordDocument1.docx file. When it opens, you should be able to see the
customization that you have done in the document.
Working with objects and documents
As we get more efficient at developing solutions that use Microsoft Office Word,
we can interact with the objects provided by the Word 2007 object model's huge
number of methods, properties, objects, and events. Remember, an object model
is a framework for developing and supporting program component objects that
provide the underlying services of interface cooperation, life cycle management,
and event services.
The most important aspect of developing and automating Office applications is to
understand the object and the object model. Specifically, we have to look at how the
objects and the object model works. Before we move onto application-level solutions,
let's look at some basic Word 2007 objects. IntelliSense is Microsoft's implementation
of auto-completion in Visual Studio's IDE. This will help the developer to easily
access the objects, properties, and methods when programming.
When developing application-level solutions in Office 2007, you may
need to access the objects of the application at the application-level for
customization. If so, go ahead and create the project using the Word 2007
Add-in Project template, which is available in Visual Studio 2008. If the
requirement is just to access the objects at document-level, then all you
need to do is to create the project using the Word 2007 Document Project
template available in Visual Studio 2008.
Word 2007 objects are arranged in a hierarchical order, and the two main classes at
the top of the hierarchy are the application and document classes. An application
object represents the whole application while a document object represents a single
document. VSTO 3.0 extends several of these native objects into host items and host
controls that can be used in document-level customizations.
 
Search JabSto ::




Custom Search