Download presentation
Presentation is loading. Please wait.
Published byClaire Allison Modified over 9 years ago
1
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist acoat@microsoft.comhttp://blogs.msdn.com/acoat Microsoft Australia CLI313
2
Agenda Office Client Development Overview Word and Excel Solutions Outlook Solutions Security and Deployment
3
Agenda Office Client Development Overview Word and Excel Solutions Outlook Solutions Security and Deployment
4
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
5
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...
6
Platform for Building Office Smart Clients Professional Developer Tools Microsoft Office Professional Edition 2003
7
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
8
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
9
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
10
Visual Studio 2005 Tools for Office A first look…
11
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...
12
Visual Studio 2005 Tools for Office Host controls
13
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
14
Visual Studio 2005 Tools for Office Actions Pane
15
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
16
Visual Studio 2005 Tools for Office Smart Tags
17
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
18
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
19
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
20
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
21
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
22
Visual Studio 2005 Tools for Office Outlook Add-ins: Hello World
23
Agenda Office Client Development Overview Developing Word and Excel Solutions Developing Outlook Solutions Security and Deployment
24
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
25
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 http://msdn.microsoft.com/library/?url=/library/en- us/dv_wrcore/html/wrtskCreatingCustomCodeGroup ForDocumentsWorkbooks.asp?frame=true http://msdn.microsoft.com/library/?url=/library/en- us/dv_wrcore/html/wrtskCreatingCustomCodeGroup ForDocumentsWorkbooks.asp?frame=true Admin required for policy deployment
26
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
27
Resources http://msdn.microsoft.com/office/under standing/vsto/ http://msdn.microsoft.com/office/under standing/vsto/articles/default.aspx#Ver sion 2005 http://msdn.microsoft.com/office/downl oads/codesamples/default.aspx
28
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
29
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: http://www.microsoft.com/australia/m sdn/howtobuy/default.aspx http://www.microsoft.com/australia/m sdn/howtobuy/default.aspx http://www.microsoft.com/australia/m sdn/howtobuy/default.aspx
30
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!
32
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.