Presentation is loading. Please wait.

Presentation is loading. Please wait.

VW302-Integrating WPF And WCF Into Your Office Business Applications

Similar presentations


Presentation on theme: "VW302-Integrating WPF And WCF Into Your Office Business Applications"— Presentation transcript:

1 VW302-Integrating WPF And WCF Into Your Office Business Applications
Microsoft ASP.NET Connections VW302-Integrating WPF And WCF Into Your Office Business Applications Tim Huckaby InterKnowlogy, CEO Microsoft RD & MVP Updates will be available at _06/ASP_Connections

2 Integrating WPF and WCF into Your Office Business Applications 300
Session Title Date Level Abstract Integrating WPF and WCF into Your Office Business Applications 300 This session will highlight a few of the ways that the Windows Presentation Foundation (WPF) and the Windows Communications Foundation (WCF) can be leveraged in applications built with Visual Studio Tools for the Office System (VSTO). Visual Studio® 2008 introduced an array of new features aimed at a wide range of Office solution types. In Visual Studio® 2008, VSTO encompasses 24 different project templates for both C# and VB.NET. With Visual Studio 2008, you can build solutions that incorporate the native capabilities of the Office client applications (like Outlook) combined with the sophisticated UI capabilities of WPF that's connected to remote data and services via WCF and use the RAD features of LINQ to manipulate that data. These new technologies provide opportunities for building powerful solutions with functionality that was previously difficult or impossible to achieve. Now that Office has evolved into a true development platform, office-based solutions are becoming increasingly sophisticated, less document-focused, and more loosely coupled. This session will show you how easy it is to build robust solutions that leverage the latest technologies. WPF provides developers and designers with a unified programming model for building rich Windows smart client user experiences within Office client applications that incorporate UI, media, and documents. VSTO provides the means to integrate WPF into Office Applications in powerful ways – like leveraging WPF user controls within an Excel or Word Document or embedding a WPF application in an Outlook form region. WCF contains a support framework and a design-time toolset for building service-oriented solutions that connect rich Office clients with powerful server-side functionality and remote data access. Visual Studio 2008 provides a simple GUI wizard that lets you consume WCF services without having to worry about service metadata, protocols, or XML configuration. The bold promise of WCF is distributed computing so the real power of a VSTO solution that leverages WCF is a common data access framework that spans multiple diverse data sources. This session will help you realize the potential of integrating these three technologies (VSTO, WCF and WPF) for building powerful applications easily.

3 From here on out I am going to call, “Visual Studio Tools for the Microsoft Office System”, “VSTO”
VSTO is the bridge between Office and Visual Studio and .NET 3

4 About… InterKnowlogy (www.InterKnowlogy.com)
4/17/2017 1:54 AM About… InterKnowlogy ( Tim Huckaby, CEO – Custom App Dev/Consulting/Software & Systems Engineering Firm headquartered in Carlsbad, CA Microsoft Gold Partner managed in SoCal and Redmond Design, Architect, Build and Deploy enterprise class applications Industry Experts 90% of the company is published Microsoft .NET Application development since 2000! Microsoft .NET Smart Client pioneers/industry leaders Information Worker Solutions Integration/Messaging, B2B/B2C, Wireless/Mobility Microsoft BizTalk Web Services, Microsoft Active Directory, Security, SSO, Authorization, Authentication Solutions on the emerging Microsoft servers Largest Client: Microsoft Well I have a two pronged job and most of it is pretty rewarding. As CEO of InterKnowlogy frequently I have to deal with things that are not about software and that’s not fun, but since we build some pretty cool applications for companies large and small all over the world, I really have no right to complain. And, in fact, microsoft is are largest client, - we help them with product team work to keynote demos to the stuff you see on msdn to their line of business applications… which is another reason why I am here today. And clearly, not only am I doing this webcast today as a favor to the VSTO team. But, when I’m speaking at conferences or doing webcasts like this every once in a while we get a cool new project from someone watching or a fantastic employee out of it. Everything I do today, I am going to make available to you. All the demos and the slide deck. Feel free to write my address down now, but at the end of the presentation I will provide you my address and a link to my blog where I will post the deck and the demos from this session today. And if you are going to build VSTO solutions in powerpoint or visio you are going to want my stuff. This is all new and there just isn’t a lot of guidance out there yet. My demos will help you get over a pretty huge learning curve and get you immediately effective in these technologies. And in my powerpoint deck I have hyperlinked a number of great places to learn this stuff and my guidance on how to do it. © 2006 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.

5 Session Objectives And Agenda
4/17/2017 1:54 AM Session Objectives And Agenda Designing, Building and Deploying OBAs that leverage WPF and WCF Demos: Document Solutions for Excel and Word Add-in Solutions in Outlook Guidance on how to get immediately effective in VSTO, WPF and WCF So here is what we are going to talk about today... We are going to talk about building .net applications and manifesting those applicaitons in powerpoint and visio. I am solely going to focus on VSTO 3.0 with Visual Studio 2008 today, but it’s important that i contrast that against the prior version of VSTO, 2.5, with VS.net 2005 so you can see how much better it is to build VSTO applicaitons in Visual Studio 2008 Today i am going to soley focus on Add-in solutions for Powerpoint and Visio. And, well, the reason for that is because there is not a document-centric solution available and that is a bit of a shame, but it’s just a matter of time. More on that later. I can tell you that the genesis of the idea for this presentation goes to Paul Stubbs of the VSTO team. He is a brilliant guy and a genuinely great guy and until i read his article in msdn magazine, i had pretty much given up on document-centric solutions for visio and powerpoint. So, thank you paul for inspiring me to take your ideas to the next level. Today i will guide you through 3 demo applicaitons. I won’t be demoing any real software solutions today, just demos of the technologies. But, with these demos you can definitely use them as the basis of real software applications. And, of course, at the end i will provide some guidance on how i learned (and continue to learn) vsto. VSTO, WPF and WCF…Why? Guidance on Where to Go Next… © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

6 VSTO is the Tool for Building OBAs
VSTO enables developers to leverage Visual Studio and the Microsoft Office platform to build scalable line-of-business solutions in .NET based on Microsoft Office Makes Office a valuable, first-class project type in Visual Studio Enables developers to create & extend Office Business Applications Enables developers to leverage key Office UI features and support collaboration and workflow Provides Office developers with the benefits and advantages of the Visual Studio professional development environment Enables developers to leverage existing programming skills Developers can leverage their company’s current investment in Office 2003 Pro and new investment in 2007 Office system VSTO is the tool for Building OBAs Because it’s .net it means developers get all the goodness of visual studio to build real applications leveraging the office platform VSTO makes provides a number of first-class project types for office in visual studio. I’m going to cover two of them today: powerpoint add-ins and visio add-ins

7 The Actions Pane Document Actions task pane Actions Pane
4/17/2017 1:54 AM The Actions Pane Document Actions task pane Specific task pane available to document customizations (new in Word and Excel 2003+) Actions Pane Programmable object exposed by VSTO from Excel Workbook and Word Document classes Fully encapsulates an implementation of Ismart Document Provides a Windows Forms-based programming model for accessing the Document Actions task pane So, what is the ActionsPane? Well, my joke is that it’s the first thing you turn off when you run an office app for the first time. But, now you have a reason to use it. You can embed your .net winforms user controls in the action pane and use them to interact with the office document or office itself The trivia on the actionspane is that before vsto you could only do something like this in c++ and it would take you 2500 line of code to do it. With vsto, it’s just one line of code © 2006 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.

8 Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP
4/17/2017 1:54 AM demo VSTO Excel And WPF Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP This is the hello world vsto-excel-wpf demo using the action pane control and a windows forms element host control © 2007 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.

9 Office Client Development With VSTO 2 Common Application Models
4/17/2017 1:54 AM Office Client Development With VSTO 2 Common Application Models Document-Centric Solutions OM MyTaskPane MyCode Office Application Solutions (Add-In) Ok, this is an important slide because it tries to delineate between the 2 different types of applications that VSTO can do I have shown you two Office Application Solution demos… Add-ins. But vsto can also do document-centric solutions in Word and Excel and these are pretty exciting because VSTO ties the .net assembly to the word or excel document itself. So, when you open the word or excel document the vsto application automatically runs. A scenario would be that a user opens an excel document and your vsto .net assembly automatically runs to mine data from a number of line of business systems and builds a realtime version of the excel spreadsheet effectively creating it from scratch. I’d love to demo you an excel or word document-centtric vsto solution, but it is beyond the scope of this presentation. It’s important to note, though, the contrast between the demo I just showed you and a document-centric solution. In the demo I just did I had to click a button in the ribbon of the powerpoint application. That makes it an add-in solution. Ultimately we need the vsto team to build document-centric solutions for powerpoint, visio, onenote and a few others in the office stack and I am sure that they are high on the priority list. We just don’t have them yet. MyMenu OM MyCode © 2006 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.

10 What the heck is XAML? Separates the front-end from the back-end
Simple declarative programming language suitable for constructing and initializing .NET Objects Usually the most concise way to represent user interfaces (or other hierarchies of objects) Doesn’t need a compile to render The language that almost all WPF related tools emit

11 What the Heck is WPF? …and why do we need it?
It’s .NET! All the goodness of Developer Productivity Built on Top of Direct 3D Converted to 3D triangles, textures and other Direct3D objects & then rendered by hardware Benefits of hardware acceleration & perf due to work being off-loaded to GPUs (unlike GDI based systems) Ensures the maximum benefit of new hardware and drivers Software rendering pipeline as fallback Declarative programming Bringing designers directly into application development Ease of deployment Allowing administrators to deploy and manage applications securely

12 Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP
4/17/2017 1:54 AM demo VSTO Excel And WPF AdventureWorks VSTO excel with wpf user control demo Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP AdventureWorks VSTO excel with wpf user control demo © 2007 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.

13 What the Heck is WCF? Framework for connecting distributed applications Part of .NET 3.0 Enables building SOA applications Implements WS-* standards Single API that supports the capabilities of: .NET Remoting ASP.NET Web Services Enterprise Services (COM+) MSMQ Messaging subsystem at its core SOAP messages Does not necessarily mean XML/Text! Interoperability with: Enterprise Services ASMX / Web Services 1.0 services Any WS-* compliant web service MSMQ applications

14 Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP
4/17/2017 1:54 AM demo VSTO Word, WCF and WPF Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP Music database demo with VSTO word, WCF and WPF © 2007 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.

15 Why WCF? Flexibility You can change your mind about wire level communication protocols, security model, and many other facets without changing your source code Maintainability One API for all forms of remote communication, don’t need to learn multiple technology stacks Power All the capabilities of other remoting APIs rolled into one Interoperability and SOA enabled in ways the other technologies never considered Simplicity On par with other remoting technologies if you just need simple remote calls Incrementally more complex as you start to take advantage of more complex features Features which the other technologies may not have Why WCF?

16 4/17/2017 1:54 AM * 4/17/2017 1:54 AM Outlook 2007 Form Regions New technology in Outlook 2007 for enhancing and replacing Outlook’s built-in forms Adjoining and Separate regions for both custom and built-in forms Replacement and Replace-all regions for custom forms Forms Designer in Outlook Many new controls allow duplication of built-in forms; they are themed and support databinding Code behind form regions is implemented via COM add-in 16 16 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

17 Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP
4/17/2017 1:54 AM demo VSTO Outlook And WPF Tim Huckaby InterKnowlogy CEO Microsoft RD & MVP This is the hello world outlook form region wpf demo © 2007 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.

18 Gotchas, Tips & Tricks Tip: You are going to need more tools than just Visual Studio .NET when building WPF solutions: Microsoft Expression Blend XAML Pad or XAML Cruncher Gotcha: when building a VSTO application DO NOT COMPILE IN BLEND. VSTO apps won’t run from Blend anyway… Tip: If you don’t have artistic talent, then don’t try to create WPF styles….there are plenty of WPF Style samples on the web Gotcha: if you are going to build outlook Add-Ins then use a VPC…or else you’ll be cleaning the registry of every compile you’ve done.

19 4/17/2017 1:54 AM Product Team Blogs Eric Carter: .NET4Office Peter Torr: Office Development, Security, Randomness… Eric Lippert: Fabulous Adventures in Coding Paul Stubbs: Office Development with .NET VSTO 2005 Team Blog Depending on time this slide may be skipped. Attendees can grab the deck after the session. Either way it’s a 30 second slide if talked to. © 2006 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.

20 Newsgroups VSTO 2005 VSTO 2003/2008 microsoft.private.whidbey.vsto
4/17/2017 1:54 AM Newsgroups VSTO 2005 microsoft.private.whidbey.vsto VSTO 2003/2008 microsoft.public.vsnet.vstools.office MSDN Forums: VSTO Depending on time this slide may be skipped. Attendees can grab the deck after the session. Either way it’s a 30 second slide if talked to. © 2006 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.

21 Additional Information
4/17/2017 1:54 AM Additional Information MSDN Developer Centers VS.NET and Office Development Office Development Hands-on Labs for VSTO VSTO 2005 Web casts Depending on time this slide may be skipped. Attendees can grab the deck after the session. Either way it’s a 30 second slide if talked to. © 2006 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.

22 Microsoft Office System Developer Conference 2006
4/17/2017 1:54 AM Resources VSTO Forum VSTO-related blogs VSTO-related Blog Search – Office Zealot Site – Depending on time this slide may be skipped. Attendees can grab the deck after the session. Either way it’s a 30 second slide if talked to. © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

23 Microsoft Office System Developer Conference 2006
4/17/2017 1:54 AM For More Information Visit the VSTO Developer Center Visit the VSTO 2005 SE web page VSTO Help documentation on MSDN Depending on time this slide may be skipped. Attendees can grab the deck after the session. Either way it’s a 30 second slide if talked to. © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

24 4/17/2017 1:54 AM Summary VSTO is the key enabler for the .NET stack to build Office Business Applications Connect documents to live business data Provide structure using XML Schemas Provide deeper UI integration using the Document Actions task pane Integrated design-time experience Developer productivity through programming model enhancements All the power of Visual Studio and the .NET Framework WPF and WCF are natural additions to your Enterprise Office Business Applications Custom, Integrated, Professional-looking Uis within the Office Client applications Distributed Office Applications that are Flexible, Powerful, Simple & Maintainable Well, if I have complleted my mission I have got you a bit excited about building VSTO applications that leverage WPF and WCF I think you saw how easy it is to build compelling OBA solutions with VSTO 3.0 by using visual studio 2008 I’ll admit the office object model is still a bit whacky and mysterious and intimidating, And honestly, this stuff is so new there just isn’t a lot of code and guidance out there to help you. so I encourage you to grab the demo applications from me so that you can take a huge leap over the learning curve. Again, I will provide you my blog address and my address on the next slide so that you can get the stuff. And here it is <click> © 2006 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.

25 Tim Huckaby, InterKnowlogy
More info on InterKnowlogy: Contact me: Tim Huckaby or Phone: Blog: About Tim Huckaby CEO, InterKnowlogy Microsoft® Regional Director – Southern California Microsoft® .NET Partner Advisory Council Founder / Member Microsoft® MVP - .NET Microsoft® Surface Partner Advisory Council INETA Speaker – International .NET Users Group Association Windows and .NET Magazine Advisory Board Member .NET Developers Journal Magazine Advisory Board Member Author / Speaker

26 Microsoft ASP.NET Connections
Slide Title Please use this template for your slides Please DO NOT change the format of this template Please DO NOT use special formatting such as shadowing for code, or shadows behind boxes, etc. Your slides are due March 3, 2008. Please send completed slides to Filename for slides should be: lastname_conference_sessionnum_sessiontitle.ppt Please zip all files before sending them. Include sample code for the attendee disk in a subfolder. Updates will be available at _06/ASP_Connections

27 Your Feedback is Important
Virtual Studios Connections Your Feedback is Important Please fill out a session evaluation form and either put them in the basket near the exit or drop them off at the conference registration desk. Thank you! Updates will be available at


Download ppt "VW302-Integrating WPF And WCF Into Your Office Business Applications"

Similar presentations


Ads by Google