Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist Microsoft Australia CLI313
Agenda Office Client Development Overview Word and Excel Solutions Outlook Solutions Security and Deployment
Agenda Office Client Development Overview Word and Excel Solutions Outlook Solutions Security and Deployment
Office in the Enterprise Office Smart Clients - Benefits Reduce data re-entry and copy/paste by connecting documents to live business data Reduce training costs by leveraging end- user experience with Office Reduce development time by leveraging the rich functionality provided by Office
Office Smart Client Applications “Connected” Documents Smart about how they connect to business data Smart about getting data in and out of documents Smart about presenting context- specific information Documents that are connected to business data and that are...
Platform for Building Office Smart Clients Professional Developer Tools Microsoft Office Professional Edition 2003
Visual Studio 2005 Tools for the Microsoft Office System (VSTO 2005) Our strategic tool for developing Office solutions Document-centric solutions for Word, Excel and InfoPath Application-level solutions (Add-ins) for Outlook VSTO makes Office development approachable to the professional developer Provides all the productivity of Visual Studio Provides all the power of the.NET Framework Leverages the skills of.NET developers VSTO solutions are secure and easy to maintain Based on.NET Code Access Security Based on.NET client deployment models
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
Developing Word and Excel Solutions with VSTO 2005 Document-centric solutions Initially supported in VSTO 2003 What’s new in VSTO 2005 Integrated design-time experience Managed controls and host controls Actions Pane Smart tag development Schema-based programming Data caching
Visual Studio 2005 Tools for Office A first look…
VSTO 2005 Word and Excel Solutions “Host” Controls Exposed via the toolbar Accessible via the Properties Explorer Programmatically accessible through named fields Data binding support Enhanced event model VSTO 2005 extends certain intrinsic Word and Excel objects...
Visual Studio 2005 Tools for Office Host controls
VSTO 2005 Word and Excel Solutions Actions Pane Document Actions task pane Specific task pane available to document customizations (new in Word and Excel 2003 Professional Edition) ActionsPane Programmable object exposed by VSTO 2005 from Excel Workbook and Word Document classes Provides a Windows Forms-based programming model for the Document Actions task pane No need to implement ISmartDocument
Visual Studio 2005 Tools for Office Actions Pane
VSTO 2005 Word and Excel Solutions Smart Tag Development Smart tags Recognized text + actions Enable you to provide context-based actions Smart tag support in VSTO 2005 Smart tag class Terms and Expressions collections Actions collection Events hooked up using.NET delegates VstoSmartTagsCollection VSTO smart tags are document-centric
Visual Studio 2005 Tools for Office Smart Tags
Direct programmatic access to XML Nodes Field instances created for each schema element Access fields, instead of UI elements Data binding support Event model ContextEnter/ContextLeaveAfterInsert/BeforeDelete BidRequestRequestDateNode.Text = DateTime.Now; VSTO 2005 Word and Excel Solutions Schema-Based Programming
VSTO 2005 Word and Excel Solutions Data Caching VSTO 2005 enables caching of arbitrary data in Word and Excel documents Why cache data in an Office document? Cached data can be used when offline Cached data can be bound to the Office document and displayed at runtime Cached data can store non-UI data Cached data is server-accessible
VSTO Data Caching Support Asymmetric programming model: Within a VSTO project: CachedAttribute is used to annotate fields that should be cached Cached fields are automatically persisted Supports any type that is XmlSerializable Cache can be accessed by an external app ServerDocument class can be used to open a document without instantiating Word/Excel Requires no dependency on Office
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
Developing Outlook Solutions with Visual Studio 2005 Tools for Office Application-level solutions (Add-ins) Newly added, post-Beta 2! What does VSTO provide? VS project template for Outlook Add-ins Add-in loader component Leverages existing VSTO infrastructure Provides infrastructure for secure and robust Outlook Add-ins Visual Studio snippets and samples for common Outlook development tasks
Visual Studio 2005 Tools for Office Outlook Add-ins: Hello World
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
VSTO Security Model Assemblies Based 100% on.NET Code Access Security By default, no code runs Trusted assembly ≠ Local machine All assemblies must be explicitly trusted (at the User level) Location-based evidence (Url or site) Signature (Authenticode or strong name) VSTO project assembly requires FullTrust
VSTO Security Model Documents Documents may also need to be trusted Trusted document = Local machine Temporary Internet files not trusted Office Document Membership Condition Requires Msosec.dll Only applies to documents and workbooks us/dv_wrcore/html/wrtskCreatingCustomCodeGroup ForDocumentsWorkbooks.asp?frame=true us/dv_wrcore/html/wrtskCreatingCustomCodeGroup ForDocumentsWorkbooks.asp?frame=true Admin required for policy deployment
VSTO Deployment Model Separation of document, code and assembly Code is part of a Visual Studio project Only the assembly is deployed with the document Assembly is “linked” to the document VSTO 2003: Custom properties VSTO 2005: Runtime storage control
Resources standing/vsto/ standing/vsto/articles/default.aspx#Ver sion oads/codesamples/default.aspx
Summary VSTO makes Visual Studio and Office better together! Benefits the end-user: all the rich features of Office Benefits the developer: all the power of VS and the.NET Framework Benefits the organization: productivity for both end-users and developers Visual Studio 2005 Tools for Office Major focus on productivity Integrated design-time experience Actions pane and smart tags Managed controls and host controls Server-side accessible data cache Outlook Add-ins
Get MSDN Universal Now! (save > $10,000 on VSTS) For a limited time purchase a 12 month MSDN Universal Subscription for $3894 (RRP). You will receive updates as they are released for SQL Server, BizTalk Server, Visual Studio, Exchange Server and Windows Server. You will also receive early access to beta products such as Windows Vista and Office 12. Get in now so that when Visual Studio Team System ships you will be upgraded at no cost to one of the new top tier subscriptions: Visual Studio 2005 Team Edition for Software Developers Visual Studio 2005 Team Edition for Software Architects Visual Studio 2005 Team Edition for Software Testers For more details and to find your local reseller visit: sdn/howtobuy/default.aspx sdn/howtobuy/default.aspx sdn/howtobuy/default.aspx
We invite you to participate in our online evaluation on CommNet, accessible Friday only If you choose to complete the evaluation online, there is no need to complete the paper evaluation Your Feedback is Important!
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.