文件名称:Microsoft Press-Programming Microsoft Outlook And Exchange 2003 (2 of 2)
文件大小:12.94MB
文件格式:RAR
更新时间:2012-03-11 19:13:57
Outlook
Chapter 1: An Introduction to Outlook 2007 Programming 1 Setting Up Outlook VBA 1 Setting Up Macro Security 2 Creating a Code-Signing Certificate 3 Reviewing the VBA Editor Interface and Options 4 Understanding Outlook 5 Outlook Profiles and Data Store 6 Outlook Sessions and Data Stores 6 Outlook Folders 6 Outlook Items 8 Outlook Data Storage 8 Accessing Data Stores Using NameSpace 9 Accessing Data with Tables 9 Outlook Data Display 10 Summary 11 Chapter 2: What’s New in Outlook 2007 13 The Unified Object Model 14 The PropertyAccessor 14 Stores and Storage Items 24 User Interface Objects 26 Accounts 28 Performance Improvements 30 Working with Tables Instead of Items 30 Filtering Tables 31 Table Default Columns 33 Table Limitations 33 Security 34 Trusted Code 35 Untrusted Code 35 The Importance of Using DASL 35 DASL Namespaces 36 Using DASL and JET Syntax 36 Summary 38 Chapter 3: Outlook Development 39 The Application Object 39 New Methods, Properties, and Events 44 Other Important Collections, Methods, Properties, and Events 48 The NameSpace Object 53 Exchange 53 Categories 54 Picking Folders 54 Picking Names 55 Summary 57 Chapter 4: Outlook VBA 59 The Outlook VBA Project 59 The Project File 59 ThisOutlookSession 60 Macros and VBA Procedures 60 Macro Security 60 Security Levels 61 Signed Macro Code 61 Class Modules 61 ThisOutlookSession 62 User Classes 62 Code Modules 63 Office UserForms 64 Creating the Macro User Interface 64 Working with Outlook Events 68 Application Events 69 Folder Events 77 User Events 80 Wrapper Classes and Collections 81 Macro Projects 88 Custom Rules 89 Additional Macros 100 Running and Distributing Macros 108 Running Macros 108 Distributing the VBA Project 109 Distributing Individual Macros 110 Summary 110 Chapter 5: Outlook Forms 111 Working with Standard Forms 111 Forms Libraries 112 Published Forms 113 Form Customization 113 Advantages and Disadvantages of Custom Forms 114 Back to the Past: the Forms Development Environment 116 Using the Field Chooser 118 Using the Control Toolbox 119 Using the Code Window 120 Prototyping Forms Code in VBA 122 Simulating the Form Environment in VBA 123 Developing and Debugging Using VBA 124 Custom Form Walkthrough 124 Creating, Publishing, and Running a Form 125 Where to Publish Forms 129 Publishing Forms Using Code 129 Testing Code for the Form 132 Forms Management 136 Form Behavior 138 Trusted Forms 138 Active X Controls 138 Script in Forms 139 Form Regions 139 Form Region Locations, Properties, and Registry Settings 140 Form Region Walkthrough 141 Summary 145 Chapter 6: COM Addins 147 Managed or Unmanaged Code? 147 IDTExtensibility2 and Trusted COM Addins 148 Version Differences 149 VB.NET Addin Implementations 149 C# Addin Implementations 150 Addin Templates 151 Explorer and Inspector Event Handlers 152 Setting Up Explorer and Inspector Event Handlers 152 The OnDisconnection Catch-22 Bug 155 Explorer and Inspector Wrappers 164 Template Utility Code 179 VB.NET Utility Code 180 C# Utility Code 182 Displaying Outlook Property Pages 185 Displaying Property Pages with VB.NET 185 Displaying Property Pages with C# 186 Communicating with a COM Addin 188 VB.NET 188 Testing Addin Communications 189 C# 190 VSTO with VB.NET 191 VSTO with C# 194 Summary 196 Chapter 7: COM Addins and the Outlook User Interface 197 Working with Menus and Toolbars 197 Menus and Toolbars in Explorers 198 VB.NET 199 C# 206 VSTO Interface Handlers 213 VB.NET 213 C# 214 AxHost 216 VB.NET 216 C# 216 Working with the Ribbon 217 Ribbon XML 218 Ribbon Callbacks 224 Custom Task Panes 234 Creating Custom Task Panes 235 Working with Custom Task Panes 239 Form Regions 240 Creating Custom Form Regions 242 Working with Custom Form Regions 244 Custom Views 248 Types of Custom Views 248 Creating Custom Views 248 Filtering and Formatting Custom Views 249 View XML 250 Summary 251 Chapter 8: Interfacing Outlook with Other Applications 253 Microsoft Word 254 Microsoft Excel 257 Microsoft Access 264 ADO 265 Access DAO 267 DAO DBEngine 268 Web Browser 269 Browser Control Form 269 Summary 272 Chapter 9: Real-World Outlook Programming 275 Supporting Multiple Versions of Outlook 275 Coding for Compatibility 276 Ribbon Considerations and Workarounds 277 Addin Deployment 279 Unmanaged Code Addins 279 Managed Code Addins 280 Outlook Programming Limitations 282 Outlook 2007 282 Outlook 2003 and Earlier 283 Things We Still Don’t Have in Outlook 2007 287 Using Alternate APIs 288 CDO 288 Redemption 289 Summary 303 Chapter 10: Task Management System 305 Task Management System Features 305 The Connect Class 307 The VB Connect Class 307 The C# Connect Class 319 C# MyAxHost 335 VB Globals 337 VB OutExpl 337 C# OutExpl 338 VB ExplWrap 340 C# ExplWrap 341 VB OutInsp 344 C# OutInsp 345 VB InspWrap 347 C# InspWrap 353 VB TaskPane 362 C# TaskPane 366 VB Ribbon XML 372 C# Ribbon XML 373 Summary 373 Appendix A: Outlook 2007 Object Model Summary 375 Appendix B: Troubleshooting Problems and Support 425 Index 439