Updated: August 2008
Applies to |
|---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. Project type Microsoft Office version For more information, see Features Available by Application and Project Type. |
Template solutions are built with a relative path to the customization, unless you take steps to change the path. If the customization is stored in a network location, you must change a custom document property to include a full path to the deployment manifest on the network.
You can update the custom document properties in several ways, including the following:
Use the Publish Wizard to publish your solution.
Change the properties in the Word or Excel application user interface (UI).
Change the path in the Setup program.
Use the API that is described in the Open XML Format SDK.
Use the Publish Wizard to publish the solution and automatically update the deployment manifest path in the document.
To specify the full path by using the Publish Wizard
Using the Word or Excel UI
You can update custom document properties in the application UI.
To change the property values in the application UI
Copy the solution files from the build output folder to a shared folder on the network.
Open the solution document that you plan to deploy to your users.
Click the Microsoft Office Button, point to Prepare, and then click Properties.
Click Document Properties, and then click Advanced Properties.
On the Custom tab, in the Properties list, select _AssemblyLocation.
In the Value box, there is a deployment manifest identifier already present. At the beginning of the identifier, type the fully qualified path of the deployment manifest followed by a bar, in the format path|identifier.
As an example, the path could look like this:
\\servername\foldername\filename.vsto|74744e4b-e4d6-41eb-84f7-ad20346fe2d9
For more information about how to format this identifier, see Custom Document Properties Overview.
Click OK, and then save and close the document.
You can modify the installation path in the Setup program from the Command Prompt window, without using Visual Studio. When the installer runs, it uses the updated value. For more information, see How to: Change the Installation Path of an Office Solution (2007 System).
Using the Open XML Format API
Documents in the 2007 Microsoft Office system use the Open XML Format as the default file format. You can manipulate Open XML files by using the API.
To access custom document properties by using the API
Tasks
Concepts
Date | History | Reason |
|---|
August 2008
| Added topic. |
Customer feedback.
|