Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team
Introduction Visual Studio 2008 Key Features Additional Guidance and Tools Conclusion
Custom Fluent Ribbons Custom Task Panes Core Word: Content Controls Excel: BI functions Outlook: Unified object model, Form Regions InfoPath:.NET Object Model Open XML Formats Improved managed Add-in support Core Task Panes Office Fluent Ribbon Managed Add-in(s) Storage Web Services
LOB Apps Office Business Applications
Visual Studio 2008 enables developers to Build scalable Office Business Applications Leverage key Office UI features, support workflow and easier deployment Office development is part of Visual Studio 2008 Professional and higher editions Compatibility and maintainability assurances Outlook, Word, Excel,.. COM API Your.NET Add-in PIAs Visual Studio Tools for Office (VSTO) 3.0 Runtime Design Time Run- time.NET FW 2.0/ 3.0/3.5
Introduction Visual Studio 2008 Key Features Additional Guidance and Tools Conclusion
Visual Studio Tools for Office (VSTO) VBA (as intended) VBA (as applied), COM add-in,.NET “shared add-in” Market gap VBA/COM add-in ( ).NET (from 2002) “shared add-in” Office Business Applications Complex document add-ins Simple document add-ins Macro modify Macro record/replay Advanced app-level add-ins Simple app-level add-ins Complexity VBA (still) (InfoPath 2007) from 2003
New properties enable code to be called from VBA For Excel 2007 and Word 2007 document customizations VSTO VBA Interop i = Me.Application.Run("mySpecialAddVBA", 5, 6) VBA VSTO Interop: Intellisense for VBA-callable components
Excel Document Customization
Visual Studio 2008 simplifies and speeds up their development process Actions Pane Document-specific Custom Task Pane Application-specific You can use a WPF UC Library (instead of WinForms UC) due to WinForms ↔ WPF Interop: LinkLink
a
Office has built-in support for XML-based customization model VSTO 2005 SE Simplified hookup from.NET via pre-generated classes and sample XML Visual Studio 2008 Adds full-blown visual designer, “Export to XML” option
Most demos shown in this presentation are part of the MSDN Hands-on Lab OBA Download manual and files here on our team bloghere
Excel Application Add-in
Form Regions Designer Design a User Control in Visual Studio Speeds up Form Region development Run and debug your Form Region from Visual Studio No need to manually handle manifest XML, OFS files, Reg. entries
Outlook 2007 Add-in
Information Worker Friendly end user exposure of structured content Ensures that your structure stays in the document Developer Evolution of custom defined XML schemas No XML schema required to apply structure Controls can be mapped to XML data Program against the controls
Word 2007 Document Customization
Creating a workflow for MOSS 2007 with Visual Studio 2005 is painstaking Much time is spent troubleshooting the development environment - not the customization itself The number of steps involved in a simple debugging session is excessive
1.New workflow project in Visual Studio Author the feature definition file 1.Add GUID, title, description, manifest location 3.Author workflow template definition file 1.Add GUID, name, description 4.Compile the workflow files into a.NET assembly 5.Sign the assembly 1.Add key file 6.Design the actual workflow, add code etc. (the “real” developer task) 7.Install assembly into the Global Assembly Cache 8.Extract public key token 9.Add key token to workflow template definition file 10.Deploy feature definition file to SharePoint file system 11.Deploy workflow definition file to SharePoint file system 12.Reset Internet Information Services 13.Press F5 14.Attach to WPW3.exe process 15.Associate workflow with document library
New SharePoint WF project in Visual Studio 2008 Design the workflow, add code, WF Task and Forms,.. Press F5 VS 2008 makes it easy to create, customize, and debug a SharePoint WF
ClickOnce supports Office add-ins and document customizations! Low-impact deployment mechanism introduced in.NET FW 2.0 for Windows Forms applications No admin rights used Application update without user intervention Offline access via ClickOnce cache Application installed per user Permission elevation prompting with Authenticode Uninstall using Programs and Features Supports both web deployments and network shares
Firefox support Application no longer tied to a publish location on signing Distributed apps maintain the author’s branding Authenticode certificates now renewable across updates Works across authenticated proxies Note: These enhancements are also included in.NET 2.0 SP1 and.NET 3.0 SP1
Prerequisites (require admin rights).NET FW 3.5 VSTO 3.0 Runtime Office 2007 Primary Interop Assemblies ClickOnce Deploys add-in/customization to ClickOnce Cache Creates Office and VSTO related registry settings (HKEY_CRRENT_USER) Adds entry to „Programs and Features“
Deploying an Outlook 2007 Add-in
Introduction Visual Studio 2008 Key Features Additional Guidance and Tools Conclusion
Get details on Channel9Channel9
A set of developer tools designed to complement Visual Studio Tools for Office DownloadDownload on MSDN
VSTO Developer Cleanup VSTO Troubleshooter Office Custom UI Manager
Introduction Visual Studio 2008 Key Features Additional Guidance and Tools Conclusion
A unified solutions platform for building Office Business Applications that make line-of-business systems and enterprise data accessible and relevant to users Provides premiere developer toolset for developing Office Business Applications and scalable enterprise grade solutions based on the Microsoft Office system
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Microsoft Office Interactive Developer MapMicrosoft Office Interactive Developer Map (Version 2)