
Understanding the ServerDocument Class
There are two different versions of the ServerDocument class, one for each version of the Visual Studio Tools for Office runtime. Use the one that corresponds to the solution's version of Microsoft Office:
Use the Microsoft.VisualStudio.Tools.Applications..::.ServerDocument class with customizations for Excel 2007 and Word 2007. This class is provided by the Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0 Runtime).
Use the ServerDocument class with customizations for Excel 2003 and Word 2003. This class is provided by the Visual Studio 2005 Tools for Office Second Edition runtime.
Although the two versions of the ServerDocument class share much of the same functionality, there are differences in namespaces, assemblies, and members. For more information, see Understanding ServerDocument Differences.
The ServerDocument class is designed to work on computers that do not have Microsoft Office installed. Therefore, you typically use this class in projects that do not integrate with Microsoft Office, such as Console projects or Windows Forms projects, rather than Visual Studio Tools for Office projects.
For more information about the different versions of the Visual Studio Tools for Office runtime, see Visual Studio Tools for Office Runtime Overview.