Your SlideShare is downloading. ×
0
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003

2,293

Published on

Building office applications has never been better. You've heard all of the hype about Office 2007, Ribbons, etc. This session is based on what the majority of us are in today...Office 2003. …

Building office applications has never been better. You've heard all of the hype about Office 2007, Ribbons, etc. This session is based on what the majority of us are in today...Office 2003. Customizing and automating Excel 2003 is a great way to build dynamic workbooks that solve some cool problems. This presentation is an overview of what Visual Studio Tools for office is about and how it applies to Excel 2003 and Office 2003.

Published in: Business, Technology
2 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,293
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
165
Comments
2
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Introduction – 11 years in IT development Managing consultant for Excella consulting
  • Transcript

    • 1. Scott Lock MVP, MCPD Managing Consultant Excella Consulting July 24 th , 2007
    • 2. Special Thanks
      • Frank LaVigne for developing the original slide deck and inspiration for demos
    • 3.
      • What exactly is VSTO?
      • Pros & Cons of VSTO development
      • Three Patterns of VSTO Projects
      • Advantages of VSTO Over VBA
        • Integration With Visual Studio
      • XML Mapping in Excel
      • Future of VSTO
    • 4.
      • VSTO: V isual S tudio T ools for O ffice
      • Provides design time integration with Microsoft Office Documents
      • Allows .NET Code to Interoperate with Microsoft Office products
      • It’s not your father’s VBA
    • 5.  
    • 6.  
    • 7. Demo
      • Automation client
    • 8.
      • VSTO code is Managed Code
      • Code is stored in a DLL file
        • And not in the document
      • More security options
      • Can leverage existing .NET Libraries
        • XML, Web Services, etc
      • Additional Features
        • Caching
    • 9.  
    • 10.
      • Creating a VSTO Customization Project
    • 11. Deployment
      • Deployment model based on ClickOnce
        • *Not “really” ClickOnce in VSTO 2005
      • Uses Manifests to version and locate assemblies
        • Deployment Manifest – points to the most current version of the application
        • Application Manifest – contains info on where the customization assembly is and host item classes to create
    • 12. Deployment
      • How it works…
      Workbook.xls Workbook.application (Embedded and File) Workbook.dll.manifest Workbook.dll C:deployworkbook_1.0.0.0 Workbook.dll.manifest Workbook.dll C:deployworkbook_1.0.0.1 Workbook.dll.manifest Workbook.dll C:deployworkbook_1.0.0.2
    • 13. Security
      • Code Access Security is used to keep “evil” VSTO assemblies from executing
      • “ Not Trusted” by default
      • You must explicitly add the assembly in order to execute VSTO
        • Add scripts for automated deployments
        • Use intellimirror for network deployments to support disconnected machines
      • Visual Studio automatically adds the CAS entry each time you run in debug
    • 14. Data Caching
      • XML Data Island used to cache data with workbook itself
      • Rich object model available to access data
        • ServerDocument.CachedData
      • Full control over cache lifecycle or simple attribute based caching
      • Any object that can be serialized can be cached
        • Datasets
        • Strings
        • Arrays
    • 15.
      • Publishing
      • Attaching/Detaching customizations
      • Caching Data
    • 16. XML Support
      • XML is supported using XML Maps
        • Maps are schemas associated to a workbook
        • Workbooks can contain multiple maps
        • Elements and attributes are visually mapped to ranges in worksheet
      • XML Data can be imported/exported
      • Special object XMLList used for repeating elements
    • 17.
      • Excel’s Built-In XML Mapping Capabilities
      • Excel XML Toolkit
      • Programmatically Accessing XML
    • 18. Excel Object Model
      • Application – Highest level
        • Workbooks
          • Worksheets
            • Ranges
              • Cells
      • Access to these objects is through Interop wrapper classes
      • Classes are extended by VSTO
        • Ex. Microsoft.Office.Tools.Excel.Worksheet
      • VSTO adds two additional range host controls
        • NamedRange, XMLMappedRange
    • 19. Microsoft.Office.Tools.Excel vs. Microsoft Office.Interop.Excel
      • Microsoft.Office.Tools extends native objects
        • Data-binding
        • Richer event models
      • Extended objects added at design time are automatically created as host items and host controls
        • Ex. Interop.Excel.Range does not have events, Tools.Excel.Range adds events.
      • Host items are not created at run time.
        • Are only Excel Native objects with no added features
      • Native object access via the innerobject property
    • 20. Demo
      • Calling a Webservice
      • Using Excel Objects
    • 21.
      • VSTO 2005 SE (Second Edition) released.
        • Includes support for Office 2007 as well as Add-In templates for Visio
      • RibbonX API for developing custom Office 2007 ribbons.
      VSTO Provides a Smart Client complement to MOSS Development.
    • 22.
      • Books
        • Visual Studio Tools for Office by Eric Carter & Eric Lippert
        • VSTO for Mere Mortals by Kathleen McGrath & Paul Stubbs
      • Websites
        • Office Zealot http:// www.officezealot.com
        • MSDN Office Developer Center http://msdn2.microsoft.com/en-us/office/default.aspx
        • VSTO Developer Portal http://msdn2.microsoft.com/en-us/office/aa905533.aspx
    • 23.
      • Any questions?

    ×