SlideShare a Scribd company logo
1 of 28
26ª Reunião Lisboa - 21/01/2012   http://netponto.org




VSTO + LOB Apps Information Matters
                                     João Tito Lívio
Patrocinadores “GOLD”
Patrocinador “Bronze”




Patrocinadores “Silver”
João Tito Lívio (aka Tito)
.NET e SharePoint Consultant
Project Manager

Microsoft Most Valuable Professional (Office Development)
MCP + MCTS
Sumário
• Visual Studio Tools for Office (Tool?, VBA?, Polémica? Petições? VBA will dead?, Whatever!)
    – O que é
    – Como Funciona
    – Breve introdução
         •   Application vs Document Level
         •   Criação de um Projecto VSTO
         •   Tipos de Pojectos Disponíveis
         •   Ribbon Visual Designer
• VSTO + Excel (Application Level)
    – Automação + SQL server
    – Automação + Web Services
• VSTO + Word (Document Level)
    – Automação + SQL server
• VSTO + Outlook
    – Automação com SQL Server e E-mails
Opiniões
1. Microsoft has stopped developing Visual Basic (classic) in 1999 and has spent huge effort on building
   .Net framework. since then Microsoft is promoting .Net Framework and C# as the primary language of
   choice. Visual Basic .Net is equally good and can used if you are already an expert in classic VB.

2. Microsoft “is planning “to retire VBA?. Office 2003 came with Scripting Engine based on Javascript (not
   successful) and since then promoting the use of VSTO and Office PIAs in .Net.

3. Starting Office 2007, standard formats of Excel doesn't support embedding macros. Formats that
   support Macros and VBA projects only run of located at Trusted locations or when security is lowered
   below recommended levels.

4. Starting Office 2007, the VBA environment runs in the compatibility mode and having several issues
   when dynamically invoking methods from the embedded VBA projects.

5. It is very clear future versions of Office will not support VBA. However, I don't know which will be the
   last version supporting VBA (2012, 2015?).

6. One has to seriously think about investing their time in learning VBA, when it is going away soon. It is
   getting very difficult to find junior VBA developers.
                                                                    Source: http://www.execoder.com/2012/01/excel-development-vba-vs-vsto.html
VSTO o que é?
•   Uma Tool para interagir com as Office App’s
•   Interop Object Model via .NET Components
•   Utiliza Managed Code (C# ou VB.NET)
•   Não é necessário conhecimento de VBA
•   Utiliza-se ao Nível da Aplicação Host ou Doc..
•   É interpretado como COM Component
Como Funciona

 VS App   Interop Assembly                         Microsoft Office

                             Object Model Call’s


                              Event, Callbacks
                                 Methods
Application vs Document Level
 A Aplicação Host Carrega o DLL   O Documento Carrega o DLL
Tipos de Projetos VSTO
                                                  APP
              São Templates criados para desenvolver projetos
              VSTO.

              São os suportados oficialmente pela Microsoft,
              embora podermos criar os nossos próprios
              templates para qualquer aplicação Office pois os
              NET Interops estão disponíveis


                                                  DOC
Criar o Primeiro Projecto VSTO
Ribbon Visual Designer
• Integração com a Application Host
• Usa Callbacks para comunicar com o Office
• XML Based


              protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
              {
                  return new MyRibbon();
              }
Trabalhar com a Ribbon
Microsoft Excel e LOB
• Get Data from SQL server
• Interop with Excel
• Manage Workbooks and Worksheets
Excel Interop LOB
Microsoft Excel e Web Services
• Get Data from Service
• Interop with Excel
• Display Data
Excel Interop Web Services
Microsoft Word e LOB
• Get Data from SQL server
• Interop with Word
• Manage Document
Word Interop LOB
Microsoft Outlook e LOB
• Get Data from SQL server
• Interop with Outlook
• Manage Outlook Actions
Outlook Interop LOB
Deploying Visual Studio 2010 VSTO
•   The Microsoft .NET Framework
     –   Visual Studio Tools for the Office system 2010 can work with the Microsoft .NET Framework 3.5 or
         Microsoft .NET Framework 4.

•   The Microsoft Visual Studio 2010 Tools for Office Runtime.
     –   Visual Studio 2010 Tools for Office Runtime provides a runtime environment that manages add-ins
         and document-level solutions.

•   The primary interop assemblies for the 2007 Microsoft Office system or Microsoft Office 2010.
•   Any utilities assemblies referenced by projects that target the .NET Framework 4.

Solution Specific Components
The installer package must install the following components to the user computer:

     –   The Microsoft Office document, if you create a document-level solution.
     –   The customization assembly and any assemblies it requires, Additional components such as configuration
         files, The application manifest (.manifest). The deployment manifest (.vsto).
     –   Ver: http://msdn.microsoft.com/en-us/library/ff937654#Deployment
Questões?
Referências e Links Imperdíveis
• Referências: Office Developer Center
   – http://msdn.microsoft.com/en-us/office/aa905340
• Vídeos Interessantes e Links
   Video: Developing Managed Applications for Office 2010 in Visual Studio 2010
   Video: Embedding Type Information from Microsoft Office Assemblies
   Video: Copying a Document to the End User Computer after a ClickOnce Installation
   Video: Deploying Multiple Office Solutions in a Single ClickOnce Installer

• Links
   –   Deployment Overview (Office Development in Visual Studio)
   –   Advanced Office Solution Deployment
   –   Preparing Computers to Run or Host Office Solutions
   –   Updating Office Solutions
   –   How to: Install a ClickOnce Office Solution
   –   How to: Uninstall a ClickOnce Office Solution
   –   Troubleshooting Office Solution Deployment
Patrocinadores “GOLD”
Patrocinador “Bronze”




Patrocinadores “Silver”
Próximas reuniões presenciais
• 21/01/2012 – Janeiro
• 11/02/2011 – Fevereiro (Coimbra)
• 18/02/2011 – Fevereiro
• 24/03/2011 – Março

Reserva estes dias na agenda! :)
Obrigado!
Contactos Sociais e Blogs
http://www.tlivio.org

More Related Content

What's hot

Microsoft.net architecturte
Microsoft.net architecturteMicrosoft.net architecturte
Microsoft.net architecturte
Iblesoft
 
Eclipsist2009 Rich Client Roundup
Eclipsist2009 Rich Client RoundupEclipsist2009 Rich Client Roundup
Eclipsist2009 Rich Client Roundup
Murat Yener
 
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
joycsc
 

What's hot (15)

Apache Flex: Overview
Apache Flex: OverviewApache Flex: Overview
Apache Flex: Overview
 
Microsoft.net architecturte
Microsoft.net architecturteMicrosoft.net architecturte
Microsoft.net architecturte
 
c# training | c# training videos | c# object oriented programming | c# course
c# training | c# training videos | c# object oriented programming | c# coursec# training | c# training videos | c# object oriented programming | c# course
c# training | c# training videos | c# object oriented programming | c# course
 
Asp.net mvc 5 ppt
Asp.net mvc 5 pptAsp.net mvc 5 ppt
Asp.net mvc 5 ppt
 
Uncovering Windows - Silverlight Seminar
Uncovering Windows - Silverlight SeminarUncovering Windows - Silverlight Seminar
Uncovering Windows - Silverlight Seminar
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Wpf 1
Wpf 1Wpf 1
Wpf 1
 
Silverlight
SilverlightSilverlight
Silverlight
 
Vs2010 Net4
Vs2010 Net4Vs2010 Net4
Vs2010 Net4
 
Eclipsist2009 Rich Client Roundup
Eclipsist2009 Rich Client RoundupEclipsist2009 Rich Client Roundup
Eclipsist2009 Rich Client Roundup
 
10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)
 
Windows 8
Windows 8Windows 8
Windows 8
 
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World IntegrationLotusUserGroup.org Virtual User Group Meeting - The Real World Integration
LotusUserGroup.org Virtual User Group Meeting - The Real World Integration
 
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
Next Generation Software Development: Using .NET 4.0 and Visual Studio 2010
 
MEAN Vs MERN Stack | Detailed Comparison Between MEAN & MERN Stack
MEAN Vs MERN Stack | Detailed Comparison Between MEAN & MERN StackMEAN Vs MERN Stack | Detailed Comparison Between MEAN & MERN Stack
MEAN Vs MERN Stack | Detailed Comparison Between MEAN & MERN Stack
 

Viewers also liked

PowerShell: (Don't Fear) The Console - Bruno Lopes
PowerShell: (Don't Fear) The Console - Bruno LopesPowerShell: (Don't Fear) The Console - Bruno Lopes
PowerShell: (Don't Fear) The Console - Bruno Lopes
Comunidade NetPonto
 
Novidades Azure (Após o //BUILD)
Novidades Azure (Após o //BUILD)Novidades Azure (Após o //BUILD)
Novidades Azure (Após o //BUILD)
Comunidade NetPonto
 

Viewers also liked (19)

Windows Azure para Developers
Windows Azure para DevelopersWindows Azure para Developers
Windows Azure para Developers
 
OData – Super Cola W3
OData – Super Cola W3OData – Super Cola W3
OData – Super Cola W3
 
PowerShell: (Don't Fear) The Console - Bruno Lopes
PowerShell: (Don't Fear) The Console - Bruno LopesPowerShell: (Don't Fear) The Console - Bruno Lopes
PowerShell: (Don't Fear) The Console - Bruno Lopes
 
Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7
 
SoapUI: Testes em WebServices
SoapUI: Testes em WebServicesSoapUI: Testes em WebServices
SoapUI: Testes em WebServices
 
Novidades do SQL Server 2011, "Denali"
Novidades do SQL Server 2011, "Denali"Novidades do SQL Server 2011, "Denali"
Novidades do SQL Server 2011, "Denali"
 
Introdução ao Lucene.net
Introdução ao Lucene.netIntrodução ao Lucene.net
Introdução ao Lucene.net
 
Arquitectura dos Serviços da plataforma Windows Azure
Arquitectura dos Serviços da plataforma Windows AzureArquitectura dos Serviços da plataforma Windows Azure
Arquitectura dos Serviços da plataforma Windows Azure
 
Document Databases e RavenDB
Document Databases e RavenDBDocument Databases e RavenDB
Document Databases e RavenDB
 
Windows Phone 7 & XNA - Let's play?
Windows Phone 7 & XNA - Let's play?Windows Phone 7 & XNA - Let's play?
Windows Phone 7 & XNA - Let's play?
 
Know your SQL Server - DMVs
Know your SQL Server - DMVsKnow your SQL Server - DMVs
Know your SQL Server - DMVs
 
MAF - Managed AddIn Framework
MAF - Managed AddIn FrameworkMAF - Managed AddIn Framework
MAF - Managed AddIn Framework
 
Novidades Azure (Após o //BUILD)
Novidades Azure (Após o //BUILD)Novidades Azure (Após o //BUILD)
Novidades Azure (Após o //BUILD)
 
O porque das minhas aplicações funcionarem... E o que acontece com os recurso...
O porque das minhas aplicações funcionarem... E o que acontece com os recurso...O porque das minhas aplicações funcionarem... E o que acontece com os recurso...
O porque das minhas aplicações funcionarem... E o que acontece com os recurso...
 
Windows Workflow Foundation 4: Introdução - C. Augusto Proiete
Windows Workflow Foundation 4: Introdução - C. Augusto ProieteWindows Workflow Foundation 4: Introdução - C. Augusto Proiete
Windows Workflow Foundation 4: Introdução - C. Augusto Proiete
 
HTML5 - Pedro Rosa
HTML5 - Pedro RosaHTML5 - Pedro Rosa
HTML5 - Pedro Rosa
 
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Testes? Mas isso não aumenta o tempo de projecto? Não quero...Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
 
Windows Azure - Uma Plataforma para o Desenvolvimento de Aplicações
Windows Azure - Uma Plataforma para o Desenvolvimento de AplicaçõesWindows Azure - Uma Plataforma para o Desenvolvimento de Aplicações
Windows Azure - Uma Plataforma para o Desenvolvimento de Aplicações
 
NoSQL em Windows Azure Table Storage - Vitor Tomaz
NoSQL em Windows Azure Table Storage - Vitor TomazNoSQL em Windows Azure Table Storage - Vitor Tomaz
NoSQL em Windows Azure Table Storage - Vitor Tomaz
 

Similar to VSTO + LOB Apps Information Matters

MWLUG 2011: The Never Ending Integration Story
MWLUG 2011: The Never Ending Integration StoryMWLUG 2011: The Never Ending Integration Story
MWLUG 2011: The Never Ending Integration Story
John Head
 
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
BIWUG
 
Andrew Odc2008
Andrew Odc2008Andrew Odc2008
Andrew Odc2008
notarian
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan
 

Similar to VSTO + LOB Apps Information Matters (20)

Taking SharePoint 2010 Offline - European Best Practices Conference
Taking SharePoint 2010 Offline - European Best Practices ConferenceTaking SharePoint 2010 Offline - European Best Practices Conference
Taking SharePoint 2010 Offline - European Best Practices Conference
 
DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRaining
 
Rcs project Training Bangalore
Rcs project Training BangaloreRcs project Training Bangalore
Rcs project Training Bangalore
 
MWLUG 2011: The Never Ending Integration Story
MWLUG 2011: The Never Ending Integration StoryMWLUG 2011: The Never Ending Integration Story
MWLUG 2011: The Never Ending Integration Story
 
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
Yo Office! Use your SPFx Skills to Build Add-Ins for Word, Excel, Outlook and...
 
Office As A Development Platform
Office As A Development PlatformOffice As A Development Platform
Office As A Development Platform
 
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
 
Entity Framework Core 1.0
Entity Framework Core 1.0Entity Framework Core 1.0
Entity Framework Core 1.0
 
Andrew Odc2008
Andrew Odc2008Andrew Odc2008
Andrew Odc2008
 
JMP205 - Integration of IBM Lotus Notes and Lotus Domino with Microsoft Offic...
JMP205 - Integration of IBM Lotus Notes and Lotus Domino with Microsoft Offic...JMP205 - Integration of IBM Lotus Notes and Lotus Domino with Microsoft Offic...
JMP205 - Integration of IBM Lotus Notes and Lotus Domino with Microsoft Offic...
 
dot net
dot netdot net
dot net
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
 
Office 2010 Development in Visual Studio 2010
Office 2010 Development in Visual Studio 2010Office 2010 Development in Visual Studio 2010
Office 2010 Development in Visual Studio 2010
 
Jmp205 Final
Jmp205 FinalJmp205 Final
Jmp205 Final
 
JMP208 The Never Ending Integration Story: How to Integrate Your Lotus Notes,...
JMP208 The Never Ending Integration Story: How to Integrate Your Lotus Notes,...JMP208 The Never Ending Integration Story: How to Integrate Your Lotus Notes,...
JMP208 The Never Ending Integration Story: How to Integrate Your Lotus Notes,...
 
Lotusphere 2011 - Jmp208
Lotusphere 2011 - Jmp208Lotusphere 2011 - Jmp208
Lotusphere 2011 - Jmp208
 
I T Mentors V S2008 Onramp240 V1
I T Mentors  V S2008  Onramp240 V1I T Mentors  V S2008  Onramp240 V1
I T Mentors V S2008 Onramp240 V1
 
Building intelligent chat bot with microsoft bot framework
Building intelligent chat bot with microsoft bot frameworkBuilding intelligent chat bot with microsoft bot framework
Building intelligent chat bot with microsoft bot framework
 
SPUnite17 Become a Developer Hero by Building Office Add ins
SPUnite17 Become a Developer Hero by Building Office Add insSPUnite17 Become a Developer Hero by Building Office Add ins
SPUnite17 Become a Developer Hero by Building Office Add ins
 
.net 3.5 and vs 2008
.net 3.5 and vs 2008.net 3.5 and vs 2008
.net 3.5 and vs 2008
 

More from Comunidade NetPonto

Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone AppsComo deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
Comunidade NetPonto
 
Case studies about Layout & View States & Scale in Windows 8 Store Apps
Case studies about Layout & View States & Scale in Windows 8 Store AppsCase studies about Layout & View States & Scale in Windows 8 Store Apps
Case studies about Layout & View States & Scale in Windows 8 Store Apps
Comunidade NetPonto
 
Aspect-oriented Programming (AOP) com PostSharp
Aspect-oriented Programming (AOP) com PostSharpAspect-oriented Programming (AOP) com PostSharp
Aspect-oriented Programming (AOP) com PostSharp
Comunidade NetPonto
 

More from Comunidade NetPonto (20)

Continuous Delivery for Desktop Applications: a case study - Miguel Alho & Jo...
Continuous Delivery for Desktop Applications: a case study - Miguel Alho & Jo...Continuous Delivery for Desktop Applications: a case study - Miguel Alho & Jo...
Continuous Delivery for Desktop Applications: a case study - Miguel Alho & Jo...
 
Criando aplicações para windows phone 8.1 e windows 8.1 com o app studio da...
Criando aplicações para windows phone 8.1 e windows 8.1 com o app studio da...Criando aplicações para windows phone 8.1 e windows 8.1 com o app studio da...
Criando aplicações para windows phone 8.1 e windows 8.1 com o app studio da...
 
MVVM Light e Cimbalino Toolkits - Sara Silva
MVVM Light e Cimbalino Toolkits - Sara SilvaMVVM Light e Cimbalino Toolkits - Sara Silva
MVVM Light e Cimbalino Toolkits - Sara Silva
 
Deep dive into Windows Azure Mobile Services - Ricardo Costa
Deep dive into Windows Azure Mobile Services - Ricardo CostaDeep dive into Windows Azure Mobile Services - Ricardo Costa
Deep dive into Windows Azure Mobile Services - Ricardo Costa
 
The power of templating.... with NVelocity - Nuno Cancelo
The power of templating.... with NVelocity - Nuno CanceloThe power of templating.... with NVelocity - Nuno Cancelo
The power of templating.... with NVelocity - Nuno Cancelo
 
ASP.Net Performance – A pragmatic approach - Luis Paulino
ASP.Net Performance – A pragmatic approach - Luis PaulinoASP.Net Performance – A pragmatic approach - Luis Paulino
ASP.Net Performance – A pragmatic approach - Luis Paulino
 
ASP.NET Signal R - Glauco Godoi
ASP.NET Signal R - Glauco GodoiASP.NET Signal R - Glauco Godoi
ASP.NET Signal R - Glauco Godoi
 
De Zero a Produção - João Jesus
De Zero a Produção - João JesusDe Zero a Produção - João Jesus
De Zero a Produção - João Jesus
 
Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone AppsComo deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
Como deixar de fazer "copy and paste" entre Windows Store e Windows Phone Apps
 
Case studies about Layout & View States & Scale in Windows 8 Store Apps
Case studies about Layout & View States & Scale in Windows 8 Store AppsCase studies about Layout & View States & Scale in Windows 8 Store Apps
Case studies about Layout & View States & Scale in Windows 8 Store Apps
 
Aspect-oriented Programming (AOP) com PostSharp
Aspect-oriented Programming (AOP) com PostSharpAspect-oriented Programming (AOP) com PostSharp
Aspect-oriented Programming (AOP) com PostSharp
 
Utilização de Mock Objects em Testes Unitários
Utilização de Mock Objects em Testes UnitáriosUtilização de Mock Objects em Testes Unitários
Utilização de Mock Objects em Testes Unitários
 
Dinâmica e Motivacao de Equipas de Projecto
Dinâmica e Motivacao de Equipas de ProjectoDinâmica e Motivacao de Equipas de Projecto
Dinâmica e Motivacao de Equipas de Projecto
 
KnockoutJS com ASP.NET MVC3: Utilização na vida real
KnockoutJS com ASP.NET MVC3: Utilização na vida realKnockoutJS com ASP.NET MVC3: Utilização na vida real
KnockoutJS com ASP.NET MVC3: Utilização na vida real
 
Como ser programador durante o dia e mesmo assim dormir bem à noite
Como ser programador durante o dia e mesmo assim dormir bem à noiteComo ser programador durante o dia e mesmo assim dormir bem à noite
Como ser programador durante o dia e mesmo assim dormir bem à noite
 
Windows 8: Desenvolvimento de Metro Style Apps - C. Augusto Proiete
Windows 8: Desenvolvimento de Metro Style Apps - C. Augusto ProieteWindows 8: Desenvolvimento de Metro Style Apps - C. Augusto Proiete
Windows 8: Desenvolvimento de Metro Style Apps - C. Augusto Proiete
 
Uma Introdução a ASP.NET Web API
Uma Introdução a ASP.NET Web APIUma Introdução a ASP.NET Web API
Uma Introdução a ASP.NET Web API
 
Como não entalar os dedos nas janelas: Finger-based apps no Windows 8
Como não entalar os dedos nas janelas: Finger-based apps no Windows 8Como não entalar os dedos nas janelas: Finger-based apps no Windows 8
Como não entalar os dedos nas janelas: Finger-based apps no Windows 8
 
Sessão Especial: PowerPivot com Alberto Ferrari
Sessão Especial: PowerPivot com Alberto FerrariSessão Especial: PowerPivot com Alberto Ferrari
Sessão Especial: PowerPivot com Alberto Ferrari
 
NuGet no Contexto Empresarial
NuGet no Contexto EmpresarialNuGet no Contexto Empresarial
NuGet no Contexto Empresarial
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

VSTO + LOB Apps Information Matters

  • 1. 26ª Reunião Lisboa - 21/01/2012 http://netponto.org VSTO + LOB Apps Information Matters João Tito Lívio
  • 4. João Tito Lívio (aka Tito) .NET e SharePoint Consultant Project Manager Microsoft Most Valuable Professional (Office Development) MCP + MCTS
  • 5. Sumário • Visual Studio Tools for Office (Tool?, VBA?, Polémica? Petições? VBA will dead?, Whatever!) – O que é – Como Funciona – Breve introdução • Application vs Document Level • Criação de um Projecto VSTO • Tipos de Pojectos Disponíveis • Ribbon Visual Designer • VSTO + Excel (Application Level) – Automação + SQL server – Automação + Web Services • VSTO + Word (Document Level) – Automação + SQL server • VSTO + Outlook – Automação com SQL Server e E-mails
  • 6. Opiniões 1. Microsoft has stopped developing Visual Basic (classic) in 1999 and has spent huge effort on building .Net framework. since then Microsoft is promoting .Net Framework and C# as the primary language of choice. Visual Basic .Net is equally good and can used if you are already an expert in classic VB. 2. Microsoft “is planning “to retire VBA?. Office 2003 came with Scripting Engine based on Javascript (not successful) and since then promoting the use of VSTO and Office PIAs in .Net. 3. Starting Office 2007, standard formats of Excel doesn't support embedding macros. Formats that support Macros and VBA projects only run of located at Trusted locations or when security is lowered below recommended levels. 4. Starting Office 2007, the VBA environment runs in the compatibility mode and having several issues when dynamically invoking methods from the embedded VBA projects. 5. It is very clear future versions of Office will not support VBA. However, I don't know which will be the last version supporting VBA (2012, 2015?). 6. One has to seriously think about investing their time in learning VBA, when it is going away soon. It is getting very difficult to find junior VBA developers. Source: http://www.execoder.com/2012/01/excel-development-vba-vs-vsto.html
  • 7. VSTO o que é? • Uma Tool para interagir com as Office App’s • Interop Object Model via .NET Components • Utiliza Managed Code (C# ou VB.NET) • Não é necessário conhecimento de VBA • Utiliza-se ao Nível da Aplicação Host ou Doc.. • É interpretado como COM Component
  • 8. Como Funciona VS App Interop Assembly Microsoft Office Object Model Call’s Event, Callbacks Methods
  • 9. Application vs Document Level A Aplicação Host Carrega o DLL O Documento Carrega o DLL
  • 10. Tipos de Projetos VSTO APP São Templates criados para desenvolver projetos VSTO. São os suportados oficialmente pela Microsoft, embora podermos criar os nossos próprios templates para qualquer aplicação Office pois os NET Interops estão disponíveis DOC
  • 11. Criar o Primeiro Projecto VSTO
  • 12. Ribbon Visual Designer • Integração com a Application Host • Usa Callbacks para comunicar com o Office • XML Based protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject() { return new MyRibbon(); }
  • 13. Trabalhar com a Ribbon
  • 14. Microsoft Excel e LOB • Get Data from SQL server • Interop with Excel • Manage Workbooks and Worksheets
  • 16. Microsoft Excel e Web Services • Get Data from Service • Interop with Excel • Display Data
  • 17. Excel Interop Web Services
  • 18. Microsoft Word e LOB • Get Data from SQL server • Interop with Word • Manage Document
  • 20. Microsoft Outlook e LOB • Get Data from SQL server • Interop with Outlook • Manage Outlook Actions
  • 22. Deploying Visual Studio 2010 VSTO • The Microsoft .NET Framework – Visual Studio Tools for the Office system 2010 can work with the Microsoft .NET Framework 3.5 or Microsoft .NET Framework 4. • The Microsoft Visual Studio 2010 Tools for Office Runtime. – Visual Studio 2010 Tools for Office Runtime provides a runtime environment that manages add-ins and document-level solutions. • The primary interop assemblies for the 2007 Microsoft Office system or Microsoft Office 2010. • Any utilities assemblies referenced by projects that target the .NET Framework 4. Solution Specific Components The installer package must install the following components to the user computer: – The Microsoft Office document, if you create a document-level solution. – The customization assembly and any assemblies it requires, Additional components such as configuration files, The application manifest (.manifest). The deployment manifest (.vsto). – Ver: http://msdn.microsoft.com/en-us/library/ff937654#Deployment
  • 24. Referências e Links Imperdíveis • Referências: Office Developer Center – http://msdn.microsoft.com/en-us/office/aa905340 • Vídeos Interessantes e Links Video: Developing Managed Applications for Office 2010 in Visual Studio 2010 Video: Embedding Type Information from Microsoft Office Assemblies Video: Copying a Document to the End User Computer after a ClickOnce Installation Video: Deploying Multiple Office Solutions in a Single ClickOnce Installer • Links – Deployment Overview (Office Development in Visual Studio) – Advanced Office Solution Deployment – Preparing Computers to Run or Host Office Solutions – Updating Office Solutions – How to: Install a ClickOnce Office Solution – How to: Uninstall a ClickOnce Office Solution – Troubleshooting Office Solution Deployment
  • 27. Próximas reuniões presenciais • 21/01/2012 – Janeiro • 11/02/2011 – Fevereiro (Coimbra) • 18/02/2011 – Fevereiro • 24/03/2011 – Março Reserva estes dias na agenda! :)
  • 28. Obrigado! Contactos Sociais e Blogs http://www.tlivio.org