Smart Document

Smart Document

The contract smart document code was compiled, and the DLL and PDB files were copied into the virtual machine at http://fabrikam1/officemanifests/TechManual/SmartDocument/manifest.xml. The source code is located at C:\Program Files\FabriKam\sources\solutions\Technical Manual\Smart Document. To view the source code, open clsSDTechManual.sln in Microsoft® Visual Studio® .NET 2003.

The sections below walk through the smart document code. Because the Sales Report solution smart document walkthrough (refer to the document titled Sales Report Solution) goes into detail about smart document technology and coding techniques, this walkthrough will simply focus on the interesting functions in the Technical Manual smart document.

Before we begin the code walkthrough, let us review the basic logical requirements to make a smart document work:

  • Define our namespace.

  • Decide which (and how many) XML elements of the Technical Manual Schema we are going to apply actions to.

  • Decide what we want to instantiate and cache on load.

  • Decide what actions we are going to apply to our elements and which controls we will need to carry out our actions.

After this, we are left with the simple task of writing the custom logic to put behind our controls.

 

© 2005 Microsoft Corporation. All rights reserved.