CopyrightPraise for Visual Studio Tools for OfficeMicrosoft .NET Development SeriesTitles in the SeriesAbout the AuthorsForewordPrefaceAcknowledgmentsPart One. An Introduction to VSTO Chapter 1. An Introduction to Office ProgrammingWhy Office Programming?Office Object ModelsProperties, Methods, and EventsThe Office Primary Interop Assemblies (PIAs)Conclusion Chapter 2. Introduction to Office SolutionsThe Three Basic Patterns of Office SolutionsOffice Automation ExecutablesOffice Add-InsCode Behind a DocumentConclusionPart Two. Office Programming in .NET Chapter 3. Programming ExcelWays to Customize ExcelProgramming User-Defined FunctionsIntroduction to the Excel Object ModelConclusion Chapter 4. Working with Excel EventsEvents in the Excel Object ModelEvents in Visual Studio 2005 Tools for OfficeConclusion Chapter 5. Working with Excel ObjectsWorking with the Application ObjectWorking with the Workbooks CollectionWorking with the Workbook ObjectWorking with the Worksheets, Charts, and Sheets CollectionsWorking with Document PropertiesWorking with the Windows CollectionsWorking with the Window ObjectWorking with the Names Collection and Name ObjectWorking with the Worksheet ObjectWorking with the Range ObjectSpecial Excel IssuesConclusion Chapter 6. Programming WordWays to Customize WordProgramming Research ServicesIntroduction to the Word Object ModelConclusion Chapter 7. Working with Word EventsEvents in the Word Object ModelEvents in Visual Studio Tools for OfficeConclusion Chapter 8. Working with Word ObjectsWorking with the Application ObjectWorking with the Dialog ObjectWorking with WindowsWorking with TemplatesWorking with DocumentsWorking with a DocumentWorking with the Range ObjectWorking with BookmarksWorking with TablesConclusion Chapter 9. Programming OutlookWays to Customize OutlookIntroduction to the Outlook Object ModelIntroduction to the Collaboration Data ObjectsConclusion Chapter 10. Working with Outlook EventsEvents in the Outlook Object ModelApplication-Level EventsOutlook Item EventsOther EventsConclusion Chapter 11. Working with Outlook ObjectsWorking with the Application ObjectWorking with the Explorers and Inspectors CollectionsWorking with the Explorer ObjectWorking with the Inspector ObjectWorking with the NameSpace ObjectWorking with the MAPIFolder ObjectWorking with the Items CollectionProperties and Methods Common to Outlook ItemsOutlook IssuesConclusion Chapter 12. Introduction to InfoPathWhat Is InfoPath?Getting StartedForm SecurityProgramming InfoPathData Source EventsForm Events, Properties, and MethodsConclusionPart Three. Office Programming in VSTO Chapter 13. The VSTO Programming ModelThe VSTO Programming ModelVSTO Extensions to Word and Excel ObjectsDynamic ControlsAdvanced Topic: Dynamic Host ItemsAdvanced Topic: Inspecting the Generated CodeVSTO Extensions to the Word and Excel Object ModelsConclusion Chapter 14. Using Windows Forms in VSTOIntroductionAdding Windows Forms Controls to Your DocumentWriting Code Behind a ControlThe Windows Forms Control Hosting ArchitectureProperties Merged from OLEObject or OLEControlAdding Controls at RuntimeConclusion Chapter 15. Working with Actions PaneIntroduction to the Actions PaneWorking with the ActionsPane ControlConclusion Chapter 16. Working with Smart Tags in VSTOIntroduction to Smart TagsCreating Document-Level Smart Tags with VSTOCreating Application-Level Smart TagsConclusion Chapter 17. VSTO Data ProgrammingCreating a Data-Bound Customized Spreadsheet with VSTOCreating a Data-Bound Customized Word Document with VSTODatasets, Adapters, and SourcesAnother Technique for Creating Data-Bound SpreadsheetsCaching Data in the Data IslandAdvanced ADO.NET Data Binding: Looking Behind the ScenesBinding-Related Extensions to Host Items and Host ControlsConclusion Chapter 18. Server Data ScenariosPopulating a Document with Data on the ServerUsing ServerDocument and ASP.NETA Handy Client-Side ServerDocument UtilityThe ServerDocument Object ModelConclusion Chapter 19. .NET Code SecurityCode Access Security Versus Role-Based SecurityCode Access Security in .NETLocation, Location, LocationStrong NamesPublisher CertificatesTrusting the DocumentDeploying Policy to User MachinesConclusion Chapter 20. DeploymentVSTO PrerequisitesDeploying to an Intranet Shared Directory or Web SiteLocal Machine Deployment Without a Deployment ManifestEditing ManifestsCreating Setup PackagesAdvanced Topic: Deploying Network Solutions to Be Cached LocallyConclusionPart Four. Advanced Office Programming Chapter 21. Working with XML in ExcelIntroduction to Excel's XML FeaturesIntroduction to XML Schema Creation in Visual StudioAn End-to-End ScenarioAdvanced XML Features in ExcelExcel-Friendly XML SchemasVSTO Support for Excel Schema MappingConclusion Chapter 22. Working with XML in WordIntroduction to Word's XML FeaturesAn End-to-End Scenario: Creating a Schema and Mapping It into a Word DocumentExporting the Mapped XML in the Document to an XML Data FileImporting an XML Data File into the Mapped DocumentThe XML Options DialogVSTO Support for Word Schema MappingVSTO Support for the WordML File FormatConclusion Chapter 23. Developing COM Add-Ins for Word and ExcelIntroduction to Add-InsScenarios for Using Add-InsHow a COM Add-In Is RegisteredImplementing IDTExtensibility2Writing a COM Add-In Using Visual StudioThe Pitfalls of MsCoree.dllCOM Interop and Regasm.exeShimming: A Solution to the Problems with MsCoree.dllConclusion Chapter 24. Creating Outlook Add-Ins with VSTOMoving Away from COM Add-InsCreating an Outlook Add-In in VSTOConclusionIndex