Share via


Working with XML Expansion Packs [Office 2003 SDK Documentation]

The following tables list the members of the Visual Basic for Applications (VBA) object models for Microsoft Office Excel 2003, Microsoft Office Word 2003, and Microsoft Office 2003 that are useful when interacting with XML expansion packs from within Office 2003 applications.

Member Description Object model location
XMLNamespaces The XMLNamespaces property contains all known XML namespaces found in the Schema Library on the user's computer. Member of the Application object in Word 2003 and the WorkBook object in Excel 2003.
InstallManifest The InstallManifest method allows XML expansion packs to be installed silently from code, as though the user had chosen to attach the XML expansion packs manually.

Note  Although the InstallManifest method can be specified to install a smart document for all users of a computer, an administrator can configure the Microsoft Windows® policy in such a way that it disables Office 2003 from installing the smart document so that anyone signed on to the computer can use the smart document. In this case, the smart document will be installed only for the current user.

Member of the XMLNamespaces collection in both Word 2003 and Excel 2003.
SmartDocument The SmartDocument property contains methods and properties that are useful for working with a smart document. Member of the Document object in Word 2003 and the WorkBook object in Excel 2003.

The following methods and properties are all members of the SmartDocument object in the Office 2003 object model.

Member Description
PickSolution The PickSolution method displays the XML Expansion Pack Selection dialog box, which prompts the user to attach an XML expansion pack to the current document.
RefreshPane The RefreshPane method allows developers to manually refresh the Document Actions task pane. This method is useful when invoking one control in the task pane to change the state of another. For example, when a user selects an item in a list box control, you may want to expose Help text for that selection, even though the insertion point in the document has not changed.
SolutionID The SolutionID property returns a String that represents the SolutionID element of the XML expansion pack that is attached to a smart document. Returns "None" if no XML expansion pack is attached.
SolutionURL The SolutionURL property returns a String that represents the location of the XML expansion pack manifest file for a smart document. Returns nothing if no XML expansion pack is attached.