17

Microsoft Office Excel 2007: Programming Business Intelligence Features John Hooper Service Line Architect Microsoft Corporation Jed Farr Senior Consultant

Embed Size (px)

Citation preview

Microsoft Office Excel Microsoft Office Excel 2007: 2007: Programming Business Programming Business Intelligence FeaturesIntelligence Features

John HooperService Line ArchitectMicrosoft Corporation

Jed FarrSenior ConsultantMicrosoft Corporation

AgendaAgenda

What is new in Excel 2007

UDFs in Excel 2007

Excel Services

UDFs in Excel Services

Some of what’s new in Some of what’s new in 20072007

Size - 1M rows by 16K columns Tables (data) / Pivot tables (aggregated views)

Detailed view / Structure / Aggregation functions

Improved usability

Improved sorting and filtering

Improved conditional formatting / visualisation

ChartingProgramming

Meaningful references

Formula intelli-sense

Enhanced object model

VSTO

Overview of BI in Excel Overview of BI in Excel 20072007

Jed Farr

User Defined Functions User Defined Functions (UDF)(UDF)

Definitionimplemented in an Excel Add-inVBA, COM, Automation, XLLCalled in a sheet formula: =MyUDF(…)

ScenariosCustom calculation packagesCustom data feeds

What’s New In Excel What’s New In Excel 2007?2007?XLL Add-in investmentsXLL Add-in investments

Multi-Threaded CalculationThread-Safe UDFs

Bigger grid supportBigger grid references, multi-row/column

Can call all new Excel worksheet functionsAnalysis Toolpack has been integrated into Excel

Cube functions

IFERROR(), …

Functions with up to 254 argumentsNew Excel12() interface

New string typesUnicode (wide chars; string length > 255 chars)

C-style 0-terminated strings (ASCII & Unicode)

Note: All existing XLLs are 100% supported in Excel 2007

A multithreaded UDF in Excel A multithreaded UDF in Excel 20072007

Jed Farr

Excel ServicesExcel Services

A new capability in Office SharePoint Server 2007

Main components:Server-side Excel calculation engineBrowser access to live, interactive server spreadsheetsWeb service access to server-side Excel calculation

Extensible thru managed UDFs

Excel 2007Excel 2007

Design and Design and authorauthor

Save to Save to SharePointSharePoint

BrowserBrowser

High quality web rendingHigh quality web rendingZero-footprintZero-footprintInteractive: Set Interactive: Set parameters, parameters, sort, filter, exploresort, filter, explore

View and View and Interact Interact

CustomCustomapplicationsapplications

Set values, perform Set values, perform calculations, get updated values calculations, get updated values via web servicesvia web servicesRetrieve full workbook fileRetrieve full workbook file

Programmatic AccessProgrammatic Access

Open in Excel for rich Open in Excel for rich exploration and analysisexploration and analysis

Open snapshotsOpen snapshots

Excel 2007Excel 2007

Export/Snapshot into ExcelExport/Snapshot into Excel

Spreadsheets stored in Spreadsheets stored in document librariesdocument libraries

Spreadsheet calculation and Spreadsheet calculation and rendering rendering

External data retrieval and cachingExternal data retrieval and caching

100% calculation fidelity100% calculation fidelity

Office SharePoint Server 2007Office SharePoint Server 2007

Save Save SpreadsheetsSpreadsheets

Excel ServicesExcel ServicesOverviewOverview

Excel ServicesExcel Services

Jed Farr

Excel Services UDFsExcel Services UDFsMain design pointsMain design points

Methods in a .NET 2.0 assemblyExisting native UDFs can still be used

Some V1 design restrictionsNo Excel OM (interface with the sheet – thru UDF call)More restrictive than Excel addins with

Type conversion and supported typesError handling (any exception #VALUE)

Simple load / runtime behavior

UDFs need to be thread-safeUDF security – controlled by server administrator

Registers trusted UDF assemblies with Excel ServicesCan restrict Code Access Security (CAS)

UDFs in Excel ServicesUDFs in Excel Services

Methods in a .NET 2.0 assemblyExisting native UDFs can still be used

Some V1 design restrictionsNo Excel OM (interface with the sheet – thru UDF call)More restrictive than Excel addins with

Type conversion and supported typesError handling (any exception #VALUE)

Simple load / runtime behavior

UDFs need to be thread-safeUDF security – controlled by server administrator

Registers trusted UDF assemblies with Excel ServicesCan restrict Code Access Security (CAS)

A UDF in Excel ServicesA UDF in Excel Services

Jed Farr

UDFs for client and serverUDFs for client and server

Use wrappersAvoid double code baseUse code “wrappers” as the glue to

Run existing XLL UDF code on the serverRun new UDF code on both client and server

VariationsExisting XLLNative (C, C++) function libraryNew managed codeOther variations (e.g. existing automation Add-ins)

ResourcesResources

Visit the Excel 2007 blog – http://blogs.msdn.com/excel/

© 2006 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.