Summary

In this lab, you have seen the ease of working with Office to create custom applications. You have worked with new language features like Visual Basic’s new auto-properties and collection initializers which enable you to more quickly build up your classes and methods.

Among other language features, you have seen C# 4.0’s new use of optional parameters, and seen how it makes working with the APIs of Office’s Primary Interop Assemblies much more concise and less error prone. Furthermore, you have seen how Visual Basic’s addition of multi-line lambdas and statement lambdas enables you to succinctly deal with handing delegates a suitable statement.

Finally, you have seen how Interop types can be embedded in an Office Business Application to drastically ease the burden of deploying your Office application. This is a vast improvement over previous Office development environments which required you to deal with the hardship of deconflicting multiple version dependencies.

All these improvements in the tools, platform, and languages in the latest release of Visual Studio 2010 should boost your ability to create powerful, flexible Office Business Applications.