450 likes | 535 Views
Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/ swiss_dpe_team. Visual Studio 2008 and Office Development. Agenda. Introduction Visual Studio 2008 Key Features Additional Guidance and Tools Conclusion. 2007 Office Client Platform Investments.
E N D
Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team Visual Studio 2008 and Office Development
Agenda • Introduction • Visual Studio 2008 Key Features • Additional Guidanceand Tools • Conclusion
2007 Office Client Platform Investments • Custom Fluent Ribbons • Custom Task Panes • Core • Word: Content Controls • Excel: BI functions • Outlook: Unifiedobject model, FormRegions • InfoPath: .NET Object Model • Open XML Formats • ImprovedmanagedAdd-in support Office Fluent Ribbon Core TaskPanes Managed Add-in(s) Storage Web Services
Office Business Applications (OBA) OfficeBusiness Applications LOB Apps
Visual Studio 2008 Investments • 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 Design Time .NETFW 2.0/3.0/3.5 Outlook, Word, Excel, .. COM API PIAs Visual Studio Toolsfor Office (VSTO)3.0 Runtime Your.NETAdd-in Run- time
Agenda • Introduction • Visual Studio 2008 Key Features • Additional Guidanceand Tools • Conclusion
Office Development: Earlierand Today from 2003 Visual Studio Tools for Office(VSTO) VBA/COM add-in (1995 - 2001) .NET (from 2002)“shared add-in” Marketgap Office Business Applications Complexity VBA(as applied), COM add-in, .NET“sharedadd-in” Advanced app-level add-ins Complex document add-ins Simple app-level add-ins VBA (still) Simple document add-ins VBA(asintended) Macro modify Macro record/replay (InfoPath 2007)
VSTO ↔ VBA Interop • For Excel 2007 and Word 2007 documentcustomizations • VSTO VBA Interop • i = Me.Application.Run("mySpecialAddVBA", 5, 6) • VBA VSTO Interop: New properties enable code to be called from VBA Intellisense for VBA-callable components
VSTO ↔ VBA Interop demo Excel DocumentCustomization
Task Pane and Actions Pane • Visual Studio 2008 simplifies and speeds up their development process • Actions Pane • Document-specific • Custom Task Pane • Application-specific • You can use a WPF UCLibrary (insteadofWinForms UC)due to WinForms↔ WPF Interop: Link
Whattochoose? • a
Office Fluent Ribbon Development • 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
Remark • Most demosshown in thispresentationarepartofthe MSDN Hands-on Lab OBA • Download manualandfileshere on ourteamblog
Task Pane, Ribbon Designer demo Excel Application Add-in
Outlook 2007 Form Regions (2) • 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 Form Regions demo Outlook 2007 Add-in
Word 2007 Content Controls • 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 Content Controls demo Word 2007 Document Customization
SharePoint Workflow Development • 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
Visual Studio 2005: 15 Steps • New workflow project in Visual Studio 2005 • Author the feature definition file • Add GUID, title, description, manifest location • Author workflow template definition file • Add GUID, name, description • Compile the workflow files into a .NET assembly • Sign the assembly • Add key file • Design the actual workflow, add code etc. (the “real” developer task) • Install assembly into the Global Assembly Cache • Extract public key token • Add key token to workflow template definition file • Deploy feature definition file to SharePoint file system • Deploy workflow definition file to SharePoint file system • Reset Internet Information Services • Press F5 • Attach to WPW3.exe process • Associate workflow with document library
Visual Studio 2008: 3 Steps • 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 Deployment • 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
.NET 3.5 ClickOnce Enhancements • 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
ClickOnce for Office Applications • Prerequisites (requireadminrights) • .NET FW 3.5 • VSTO 3.0 Runtime • Office 2007 Primary InteropAssemblies • ClickOnce • Deploysadd-in/customizationtoClickOnce Cache • Creates Office and VSTO relatedregistrysettings (HKEY_CRRENT_USER) • Addsentryto „Programs and Features“
ClickOnce Deployment demo Deploying an Outlook 2007 Add-in
Agenda • Introduction • Visual Studio 2008 Key Features • Additional Guidanceand Tools • Conclusion
Outlook+Services Blueprint Getdetails on Channel9
VSTO Power Tools 1.0 • A set of developer tools designed to complement Visual Studio Tools for Office • Download on MSDN
VSTO Power Tools 1.0 demo VSTO Developer Cleanup VSTO Troubleshooter Office Custom UI Manager
Agenda • Introduction • Visual Studio 2008 Key Features • Additional Guidanceand Tools • Conclusion
Key Takeaways A unified solutions platform for building Office Business Applicationsthat make line-of-business systems andenterprise data accessibleand relevantto 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.
Resources • Microsoft Office Interactive Developer Map (Version 2)