22
Creating Office Business Application using Visual Studio Tools for Office (VSTO) Introduction Aditya Eka P (Tyo’)

VSTO (Introduction)

Embed Size (px)

DESCRIPTION

This is an introduction of Visual Studio for Office (VSTO). Use for creating Office Business Application.I present this on MACO session at PT. Mitrais.

Citation preview

Page 1: VSTO (Introduction)

Creating Office Business Application using Visual Studio Tools for Office (VSTO)Introduction

Aditya Eka P (Tyo’)

Page 2: VSTO (Introduction)

Stream

Microsoft Stream Competencies

Page 3: VSTO (Introduction)

Objective

• When and why a company/user need OBA?• History • What is OBA ,VBA ,and VSTO?• Difference Between VBA• Background Problem• VSTO for Ms.Word• VSTO for Ms.Excel• VSTO for Ms.Outlook• Demo VSTO with Excel

Page 4: VSTO (Introduction)

OBA

• Office Business Application (OBA)Is application that leverages the power of the Office

Business Platform, that is the clients, servers, services, and tools that compromise the Office Application

Page 5: VSTO (Introduction)

When & why we need OBA?

• The company already has the application and database that could be use for creating OBA

• Etc.. Any reason?

“Getting work done through a document-centric paradigm”

Page 6: VSTO (Introduction)

Tools

Tools for creating OBA• Visual Basic Application (VBA) Using macro.

• Visual Studio Tools for Office (VSTO “visto”)• COM• Office Web Component

Page 7: VSTO (Introduction)

History

• VBA (Visual Basic for Applications)• VSTO for Ms.Office 2003 (.NET 2.0)• VSTO for Ms.Office 2007 (.NET 3.5)

Page 8: VSTO (Introduction)

VSTO Compare to VBA

• .NET Framework (collection, I/O, Globalization, web services)

• Visual Studio IDE• Language Features (.NET compatible languages, OOP,

better error handling)• Application level add-in development (Ribbon, Custom Task

Pane)• Code separation by using .NET Assembly, easy deployment

Page 9: VSTO (Introduction)

VSTO Compare to VBA (continued)

• UI Customization (Ribbon, Task Pane, WPF)• Enabling Layer Separation (Business Logic Layer, Data

Access Layer, Util, etc )• Security (secure deployment steps by using ClickOnces)• Managed Code• Run in office 97 to later• Has Worksheet Function• More mature and perform than VSTO

Page 10: VSTO (Introduction)

VSTO Advantages

• .NET Framework• Action Pane• Office Add-in

Page 11: VSTO (Introduction)

VSTO Disadvantages

• Require .NET Framework• Require Microsoft Office 2003-2007

Page 12: VSTO (Introduction)

VSTO

• Document Level (Excel, Word)

• Application Level (Excel, Word, Outlook)– Ribbon– Task Pane

Page 13: VSTO (Introduction)

Background Problem

• There are “Line Of Business” (LOB) system that company been use over years, and this system is billion dollars investment.Example : SAP, Sharepoint, CRM, ERP, AS400, etc

With this system resources and database, the company could create an OBA as they needed

Page 14: VSTO (Introduction)
Page 15: VSTO (Introduction)

Creating Excel Office Business Application using VSTO

Page 16: VSTO (Introduction)

VSTO for Ms. Excel

• Level

Application

Workbooks

Workbook

Worksheets

Worksheet

Range

Page 17: VSTO (Introduction)

Summary

• Office Business Application allow users to increase their productivity by providing an integrated application using document as a center of experience, and integrate with business logic, data, and services.

• With OBA, user could collaborate and get work done in familiar ways.

• With VSTO, the developer could leverage the .NET Framework

• VSTO require .NET framework 2.0 – 3.5

Page 18: VSTO (Introduction)

Reference

• http://geeks.netindonesia.net/blogs/andriyadi/archive/2009/07/16/oba-excel-amp-ado-net-data-services.aspx

• http://geeks.netindonesia.net/blogs/andriyadi/archive/2009/05/20/office-development-in-visual-studio-2010.aspx

• Office Business Applications Developer Portal (http://msdn.microsoft.com/en-us/office/aa905528.aspx)

• Northwind Office Business Application (http://code.msdn.microsoft.com/OBANorthwind)

• Compare to VBA (http://netindonesia.net/blogs/andriyadi/archive/2008/08/20/vba-vs-

vsto.aspx)• Googling

Page 19: VSTO (Introduction)

Suggest, questions, and critics

Should you have any question or suggest please reach me on my mail address below.

Email [email protected]

I’ll give my best to answer the question

Page 20: VSTO (Introduction)

TERIMA KASIH

Page 21: VSTO (Introduction)
Page 22: VSTO (Introduction)