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

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

Notes on slide 1

Introduction – 11 years in IT development Managing consultant for Excella consulting

3 Favorites

7/24/2007 Caparea.net Presentation - Visual Studio Tools for Office - Automation and Customizing Excel 2003 - Presentation 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
    • 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
    • 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
  3.  
  4.  
  5. Demo
    • Automation client
    • 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
  6.  
    • Creating a VSTO Customization Project
  7. 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
  8. 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
  9. 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
  10. 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
    • Publishing
    • Attaching/Detaching customizations
    • Caching Data
  11. 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
    • Excel’s Built-In XML Mapping Capabilities
    • Excel XML Toolkit
    • Programmatically Accessing XML
  12. 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
  13. 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
  14. Demo
    • Calling a Webservice
    • Using Excel Objects
    • 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.
    • 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
    • Any questions?

+ steelcudasteelcuda, 3 years ago

custom

2456 views, 3 favs, 0 embeds more stats

Building office applications has never been better. more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 2456
    • 2456 on SlideShare
    • 0 from embeds
  • Comments 2
  • Favorites 3
  • Downloads 137
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories