Prezentace se nahrává, počkejte prosím

Prezentace se nahrává, počkejte prosím

4/13/2017 9:38 AM Michal Neuwirth © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes.

Podobné prezentace


Prezentace na téma: "4/13/2017 9:38 AM Michal Neuwirth © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes."— Transkript prezentace:

1 4/13/2017 9:38 AM Michal Neuwirth © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

2 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX
Podokna úloh (Task pane & Action pane) Outlook Architektura

3 VSTO 3.0 VSTO 2005 SE VSTO 2005 VSTO 2003 Designery pro tvorbu UI
Podpora pro Workflow & Microsoft SharePoint Task Pane na úrovni dokumentů VSTO 3.0 Add-ins na úrovni aplikací Podpora pro vlastní podokno úloh, ribbon prvky Podokno úloh na úrovni aplikací VSTO 2005 SE VSTO 2005 Vlastní ActionsPane - na úrovni dokumentů Host Controls Cached Data v dokumentech Zpracování na straně serveru Add-in pro Outlook 2003 Nasazení a aktualizace založené na manifestech VSTO 2003 Code-behind na úrovni dokumentů Propojení Office a managed světů Striktní bezpečnostní model

4 VSTO 2005 SE VSTO 2005 VSTO 2005 SE VSTO 2005 SE VSTO 2005 SE

5 Office 2003 Podpora Add-ins na úrovni aplikace pro
Microsoft Office Excel 2003 Outlook 2003 PowerPoint 2003 Visio 2003 Word 2003

6 Office 2007 Add-in na úrovni aplikace Vlastní Podokno úloh
Úpravy RibbonX Excel 2007 Word 2007 Outlook 2007 PowerPoint 2007 InfoPath 2007 Visio 2007

7 VSTO 2008 Vyžaduje .NET Framework 3.5 Document-based řešení
Word, Excel, InfoPath Managed controls na ploše dokumentů Actions Pane Další novinky Designer pro RibbonX a Outlok regiony VBA => VSTO interoperabilita Podpora pro Workflow a Microsoft SharePoint

8 Databinding Postaveno nad ADO .NET
Práce s daty, která jsou zobrazena poté ve Wordu a Excelu Bez znalosti OM Office Datové zdroje: Web Service Databáze DataSet Vlastní objekty

9 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

10 Word Content Controls Tvorba XML schématu v prostředí vytvářením struktury dokumentu Prvky nemají vliv na layout dokumentu Prvky lze vkládat do skupin a s těmi poté pracovat Prvky lze namapovat na XML data Prvky se vkládají z ToolBoxu na Developer záložce Množství nastavení pro jednotlivé prvky Pro prázdné prvky lze nastavit řetězcové placeholdery

11 Word Content Controls Přímý přístup z .NETu ADO.NET databinding
Objektový model, event handlers, .... ADO.NET databinding

12 Microsoft Office System Developer Conference 2006
4/13/2017 9:38 AM Word Content Controls Toolbox Controls © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

13 Výhody WCC V porovnání s Bookmarky V porovnání s XML nodes
Obsahují 8 ovládacích prvků Podporují zamykání obsahu a prvku V porovnání s XML nodes Nevyžadují XML Schema V porovnání s Windows Forms Controls Podpora i pro tisk

14 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

15 VSTO Add-Ins Managed Add-ins pro: Shared Add-ins pro všechny aplikace
Excel, PowerPoint, Visio, InfoPath, Outlook, Project, Word 2003 – Excel, PowerPoint, Visio, Outlook, Project, Word Shared Add-ins pro všechny aplikace

16 Shared Add-ins COM add-in Funguje takto
Pokud chceme vytvořit Add-in pro více aplikací najednou Pokud neexistuje Managed Add-in Funguje takto Nahrávají se do DefaultDomain Sdílení security kontextu Jeden může „sundat“ další Využívá rozhraní Extensibility.IDTExtensibility2 Lze vytvořit vlastní proxy třídu („shim“) Visual Studio COM Shim Wizard

17

18 demo Shared Add-in 4/13/2017 9:38 AM
Other projects types -> Extensibility -> Shared Add-in -> Access Create 1 form (frmMain) s libovolnym obsahem Do Connect dat otevreni frmMain INSTALL Addin -> RUN UNINSTALL Hotove reseni: SharedAddin demo MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 Managed Add-in Framework
Zajišťuje tvorbu managed add-ins pro většinu aplikací Public Class ThisAddIn Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup End Sub Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown End Class

20 demo Managed Add-in 4/13/2017 9:38 AM VS -> New 2007 Word Add-in
Pridat projekt Browse Pridat formular frmMain, frmSeznam a frmDetail z predchoziho dema ThissAddin_Startup -> pridat zobrazeni frmMain Spustit Build-> Clean Project pro odinstalovani Hotove reseni: WordAddinDemo demo MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

22 Současná řešení XLM WordBasic CommandBars (‘96) WLL, XLL
4/13/2017 9:38 AM Současná řešení XLM WordBasic CommandBars (‘96) WLL, XLL XLA, PPA, Word global templates Attached Toolbars ve Wordu a Excelu …. Stále funkční!!! 22 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

23 ve Formatting Toolbaru
4/13/2017 9:38 AM Současná řešení Vlastní tlačítka ve Formatting Toolbaru Vlastní Menu Vlastní Toolbar 23 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

24 Word 2003 Možnost připojit toolbary k dokumentům
4/13/2017 9:38 AM Word 2003 Možnost připojit toolbary k dokumentům Otevřené dokumenty zobrazují pouze své připojené toolbary Toolbary vytvořené kódem jsou přístupné všem dokumentům 24 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

25 4/13/2017 9:38 AM 25 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

26 4/13/2017 9:38 AM 26 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

27 Excel 2003 Připojené toolbary k dokumentům
4/13/2017 9:38 AM Excel 2003 Připojené toolbary k dokumentům Všechny změny v prostředí se „kumulují“ v Excel toolbaru 27 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

28 4/13/2017 9:38 AM 28 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

29 4/13/2017 9:38 AM 29 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

30 Excel po otevření několika desítek dokumentů s připojenými toolbary…..
4/13/2017 9:38 AM Excel po otevření několika desítek dokumentů s připojenými toolbary….. 30 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

31 Prvek Ribbon Nové uživatelské rozhraní v Office 2007
Úpravy pomocí XML modelu VSTO 2008 podporuje úpravy pro Excel 2007, Outlook 2007, PowerPoint 2007, Word 2007 Ribbon Ovládací prvek Záložka Skupina

32 Vše v rámci záložky Add-Ins
4/13/2017 9:38 AM Stávající řešení Kód přidává Zobrazeno ve skupině Prvek do standardního menu Menu Commands Prvek do standarního toolbaru Toolbar Commands Vlastní toolbar Custom Toolbars Vše v rámci záložky Add-Ins 32 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

33 Možnosti přizpůsobení
* 4/13/2017 9:38 AM * Možnosti přizpůsobení Přidat vlastní záložky Vložení vlastní skupiny do existujících záložek Přidání položky do File Menu Přidání položky do stávajících kontextových záložek 33 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

34 Objekty mimo RibbonX Mini Toolbar Right-click (kontextová) menu
* 4/13/2017 9:38 AM * Objekty mimo RibbonX Mini Toolbar Right-click (kontextová) menu Status Bar 34 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

35 Ovládací prvky Tabs Groups Buttons Labels ToggleButtons Menus
* 4/13/2017 9:38 AM * Ovládací prvky Tabs Groups Buttons Labels ToggleButtons Menus SplitButtons CheckBoxes 35 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

36 Ovládací prvky EditBoxes DialogBoxLaunchers DropDowns ComboBoxes
* 4/13/2017 9:38 AM * Ovládací prvky EditBoxes DialogBoxLaunchers DropDowns ComboBoxes Galleries MS Office 2003: msoControlButton, msoControlEdit, msoControlPopup, msoControlComboBox, msoControlDropdown 36 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

37 RibbonX projekty COM VBA VSTO Pro aplikaci Pro dokument
Instalace na úrovni aplikace Je pořád vidět Word Global Template Excel Add-in (.xlam) PPT Add-in (.ppam) Vytvoření VSTO řešení pro celou aplikaci Pro dokument Instalace na úrovni celé aplikace Zobrazuje se dle zobrazených dokumentů Word, Excel, PowerPoint dokumenty Access databáze Vytvoření VSTO řešení pro dokumenty

38 Tvorba RibbonX RibbonX XML (nativní pro Office) RibbonX Designer

39 Ribbon Designer Plocha Ribbonu Ribbon Control Toolbox Property Grid

40 demo Ribbon designer 4/13/2017 9:38 AM
1) Ukazat jak jednoduse udelat vlastni Ribbon pomoci designeru demo MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

41 XML Formát * * <tab id=“myTab” label=“My Tab”>
4/13/2017 9:38 AM * XML Formát <tab id=“myTab” label=“My Tab”> <group id=“myGroup” label=“My 1st Group”> <button id=“myButton” label=“Hello World!” onAction=“myHelloFunc” /> </group> </tab> <tab idMso=“TabInsert”> <group id=“myGroup” label=“My 1st Group” insertAfterMso=“GroupIllustrations”> <button id=“myButton” label=“Hello World!” size=“large” imageMso=“FormatPainter” /> </group> </tab> 41 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

42 XML Schéma Ribbon, tab, group, box id, idMso
* 4/13/2017 9:38 AM * XML Schéma Ribbon, tab, group, box Kontejnery Model „najdi nebo vytvoř“ id, idMso Definice vlastního id či odkaz na standardní objekt insertAfterMso, insertBeforeMso Způsob vkládání mezi standardní objekty image, imageMso Definice vlastního obrázku či odkaz na standardní obrázek getImage, onAction, getEnabled, getVisible Nejdůležitější CallBack funkce 42 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

43

44 startFromScratch <ribbon startFromScratch=“true”>
* 4/13/2017 9:38 AM * startFromScratch <ribbon startFromScratch=“true”> Schová všechny Ribbon záložky Modifikace Office menu Zůstane pouze položka New, Open, Save, Options a Exit <command idMso=“Save” onAction=“runMyCode” /> Zachytíme stisk tlačítka Save <button id=“x” imageMso=“Save” label=“Imposter!” /> Vytvoříme vlastní tlačítko Save 44 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

45 demo Ribbon XML 4/13/2017 9:38 AM WordAddinRibbon
MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

46 Dynamická aktualizace
Přidání ovládacích prvků je možné pouze pomocí XML Nejsou žádné API pro tyto operace Vlastnosti jsou přístupné pomocí CallBack funkcí Galerie a dynamická menu Lze dynamicky „plnit“ ovládacími prvky

47 Dynamická aktualizace
Invalidate() Re-inicializace Ribbonu InvalidateControl() Re-inicializace určitého ovládacího prvku XML: <button id=“MyButton” label=“My First Button” getImage=“myButtonImage” /> C#: Ribbon.InvalidateControl(“MyButton”); 47 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

48 XML vs Designer  Vlastnost Visual Designer XML
Tvorba vlastních záložek Úprava stávajících záložek Skrytí záložek Skrytí skupin a prvků Start from Scratch Položky v Office Menu Úpravy Quick Access Toolbar Úpravy Built-in Commands Add consistent casing

49 Doporučené postupy UI Obsahuje…. File Menu
* 4/13/2017 9:38 AM * Doporučené postupy UI Obsahuje…. File Menu Externí příkazy nesouvisející s dokumentem Záložky Příkazy pro modifikaci obsahu dokumentu Kontextuální záložky Specifické příkazy pro jednotlivé objekty v dokumentech Vlastní podokna úloh Informace relevantní aktuálnímu dokumentu 49 * © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

50 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

51 Podokna úloh Actions Pane Task Pane
Asociován se specifickým dokumentem Alternativa ke „SmartDocuments“ Task Pane Stejné jako Actions Pane ale určen pro celou aplikaci

52 Podokno úloh aplikace Podokno úloh nezávislé na dokumentu
Dvě komponenty Ovládací prvek pro zobrazení vlastních informací InfoPath, WinForms Nativní či managed Add-in pro vytvoření a zobrazení podokna úloh

53 MDI a SDI Single Document Interface Multiple Document Interface
Aplikace Excel, PowerPoint InfoPath, Outlook, Word Chování Jedno rozhraní pro celou aplikaci. Okna dokumentů jsou v tomto prostředí vnořena. Každý dokument má vlastní okno. Podokno úloh Jedno podokno úloh asociováno s aplikací. Každé okno má vlastní podokno úloh.

54 SDI podokno úloh Vytvoření standardního ovládacího VS 2008 prvku
V metodě ThisAddIn_Startup() zadat: CustomTaskPanes.Add(myUserControl, “My Taskpane”)

55 demo SDI podokno úloh 4/13/2017 9:38 AM ExcelTaskPane
MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

56 MDI podokno úloh Vytvoření „wrapperu“ pro dokumentové okno, který zpracovává události a zajišťuje obnovení podokna úloh Vytvoření instance wrapperu v události vytváření okna – NewDocument, DocumentOpen atd. Asociovat podokno úloh v okně během inicializace wrapperu Držet si v Add-inu seznam všech instancí wrapperu Odebrání podokna úloh při zavření okna a zrušení instance odpovídajícího wrapperu

57 Ribbon<==> podokno úloh
Vytvoření vlastního podokna úloh V XML vytvoření CallBack funkce onAction() getPressed() Implementace CallBack funkcí onAction() – zapnutí/vypnutí podokna úloh getPressed() – vrací stav ovládacího prvku Zpřístupnit metodu InvalidateControl() V metodě VisibleChanged() uvnitř podokna úloh volat InvalidateControl()

58 demo MDI podokno úloh 4/13/2017 9:38 AM WordAddIn_01
MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

59 Podokno úloh dokumentu
Propojení mezi podoknem úloh a dokumentem Ovládací prvky WCC na straně dokumentu Windows Forms Vlastní ovládací prvky Podpora pro vytváření podokna úloh v módu návrhu Již žádné ISmartDocument interface Dim MyUserControl As New UserControl1 Private Sub ThisDocument_Initialize( _ ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Initialize Me.ActionsPane.Controls.Add(MyUserControl) End Sub

60 demo Actions Pane 4/13/2017 9:38 AM Contoso MICROSOFT CONFIDENTIAL
© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

61 Ribbon & Task Pane Support
Document- level Actions Pane Ribbon UI Customization App-level Custom Task Pane Excel 2007 Word 2007 Outlook 2007 PowerPoint 2007 InfoPath 2007

62 Persistence dat Actions Pane Custom Task Pane MDI vs SDI
Document open: task pane vytvořen Document closed: task pane zrušen Custom Task Pane Vytvořen při otevření okna Zničen při zavření okna MDI vs SDI

63 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

64 Objektový model Rozšíření existujícího modelu, nevzniká nový model
* 4/13/2017 9:38 AM Objektový model Rozšíření existujícího modelu, nevzniká nový model Stávající řešení fungují beze změn Spojení existujících APIs (CDO, ECEs) do jednoho Outlook OM Plná podpora CDO, ExMAPI, ECEs z managed kódu „Trusted Add-in“ zůstává primární technologie pro úpravy outlook prostředí a formulářové regiony ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 64 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

65 Outlook API * Outlook 2000/2002/2003 Outlook 2007 Outlook OM Outlook
4/13/2017 9:38 AM Outlook API Outlook 2000/2002/ Outlook 2007 Outlook OM Outlook OM CDO CDO Rozšířený Outlook “12” OM ECE ECE Extended MAPI ExMAPI MAPI Providers MAPI Providers ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 65 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

66 * 4/13/2017 9:38 AM Nový OOM Umožňuje vytvářet řešení proti jedné sadě API funkcí (Outlook Object Model) ECE část: Rozšířený model pro zpracování událostí pro vytváření položek, zobrazování v panelu náhledu, v inspector panelech či editace CDO část: Ekvivalentní objekty a metody pro AddressBook, DeliverNow, Stores, Fields, HiddenMessages Odstraňuje separátní bezpečnostní model pro CDO 1.21 ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 66 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

67 Outlook Form Regions Visual designer pro tvorbu Regionů
Winforms + WPF Run & Debug přímo z VS Není potřeba ruční vytváření XML manifestů, OFS soubůr, úprava registrů, atd. Možnost importu OFS souborů

68 Form Region Support Ö X Typ Standard Outlook Form
(IPM.Contact) Custom Outlook Form (IPM.Contact.Foo) Supported in Reading Pane Adjoining Ö Separate X Replace Replace-all

69 Adjoining in Reading Pane

70 Adjoining in Inspector

71 Separate

72 Replacement & Replace-All

73 demo Outlook 4/13/2017 9:38 AM SalesAddin MICROSOFT CONFIDENTIAL
© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

74 Agenda VSTO 2008 Word Content Controls Add-ins RibbonX Podokna úloh
Outlook Architektura

75 VSTO Design-time Stack
4/13/2017 9:38 AM VSTO Design-time Stack Excel, Word Excel, InfoPath, Outlook, PowerPoint, Visio, Word, (Access, Project) Excel, Outlook, PowerPoint, Word, (Access) Excel, Outlook, PowerPoint, Word, (Access) SharePoint Office IDE Hosting Outlook Workflow Document Solutions Add-ins Ribbon Ribbon XML Form Regions Project Templates Item Wizards Visual Studio MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

76 VSTO Runtime Stack Office Client Host VSTO Runtime Doc-Level Solution
4/13/2017 9:38 AM VSTO Runtime Stack Office Client Host Managed/ Unmanaged Host Doc-Level Solution App-Level Add-in VSTO Runtime Doc Task Pane Host Item Control Windows Forms Controls Custom Ribbon Custom Task Pane Custom Form Region Common VSTO Runtime AppDomain Management Security Enforcement Deployment and Updating .NET CLR Managed Add-in Framework (MAF) ClickOnce MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

77 VSTO Runtime Host Item Controls Windows Forms Controls
4/13/2017 9:38 AM VSTO Runtime Host Item Controls Microsoft.Office.Tools.Excel.ListObject Microsoft.Office.Tools.Word.Bookmark .... Windows Forms Controls Microsoft.Office.Tools.Excel.Controls.Button Microsoft.Office.Tools.Word.Controls.ComboBox ..... Specielní ovládací prvky Document Task Pane App-level Custom Task Pane Custom form region MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

78 VSTO Control Hosting Custom Windows Forms UserControl
4/13/2017 9:38 AM VSTO Control Hosting VSTO Invisible ActiveX Control Office Task Pane Window Custom Windows Forms UserControl MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

79 Doc-Level Host Item Controls
4/13/2017 9:38 AM Doc-Level Host Item Controls Excel Internal Behavior Exposed COM Object Model Excel. ListObject PIA Representation Microsoft.Office. Interop.Excel. ListObject VSTO Functional Wrapper Microsoft.Office. Tools.Excel. ListObject MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

80 VSTO Add-ins Excel Internal Behavior Exposed COM Object Model
4/13/2017 9:38 AM VSTO Add-ins Excel Internal Behavior Exposed COM Object Model Excel. Application PIA Representation Microsoft.Office. Interop.Excel. Application Microsoft. Office. Tools.AddIn MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

81 VSTO Runtime Components
4/13/2017 9:38 AM VSTO Runtime Components Office Host VSTO Runtime Unmanaged Runtime Loaders DefaultDomain Managed Runtime Check security Fetch updates Create appdomain Connect Office host AppDomain #2 Usercode Add-in/ Doc customization Host item controls Managed controls AppDomain #3 Usercode Add-in/ Doc customization MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

82 Office Interfaces Nové interfaces Interface
4/13/2017 9:38 AM Office Interfaces Nové interfaces Interface Office hosts that support this interface ICustomTaskPaneConsumer Access, Excel, InfoPath, Outlook, PowerPoint, Word IRibbonExtensibility Access, Excel, Outlook, PowerPoint, Word FormRegionStartup Outlook IBlogExtensibility Word IBlogPictureExtensibility EncryptionProvider Excel, PowerPoint, Word SignatureProvider MICROSOFT CONFIDENTIAL © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

83 ClickOnce Stejná podpora jako u WinForms aplikací 4/13/2017 9:38 AM
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

84 Zdroje Office Developer Center Hands-on Labs for VSTO

85 Nástroje ke stažení COM Shim Wizard download

86 WebCasty VSTO 2005 VSTO 2005 SE

87 Blogy John R. Durant Eric Carter Peter Torr Eric Lippert Paul Stubbs
Eric Carter Peter Torr Eric Lippert Paul Stubbs VSTO Team Blog

88 Odkaz na Office UI Licence
Jak získat zdarma licence na Intelektuální vlastnictví společnosti Microsoft opravňující vytvářet aplikace se vzhledem a funkčností Office 2007 aplikací.

89 Závěr Vývoj vlastních RibbonX prvků Vývoj sdílených Add-inů
Podokna úloh Designer pro Outlook Regions

90

91             Add-in Types Compared Feature Shared Add-ins
VSTO Add-ins Supported languages C#, Visual Basic, C++ C#, Visual Basic Available project types One generic type for all applications One specific type for each application Versions of Office 2000, XP, 2003, 2007 2003, 2007 Office apps supported All Excel, InfoPath, Outlook, PowerPoint, Visio, Word, Project Functional extensions Custom task panes, ribbons, form regions Strict security Remote deployment and automatic updates Runtime robustness via AppDomain isolation (unless you build a custom shim) Specific identification in the Office UI Office only sees the shim/Mscoree Office fast-load What is disabled on host crash? The shim (typically, Mscoree) The specific add-in, not the shim

92 4/13/2017 9:38 AM SeverDocument Class Provides access to the cached data in Word and Excel Add and remove VSTO customizations Insert, modify and remove islands of cached data © Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

93 Using the ServerDocument Class
if (newFile != null)  {      ServerDocument sd = new ServerDocument(newFile, ".XLSX");             try          {            GroupingType grouping = GetGroupingType();            CachedDataHostItem cdhi = sd.CachedData.HostItems["SalesForecastDemo2007.ThisWorkbook"];            cdhi.CachedData["financialAdvisor"].SerializeDataInstance(this.ddlUser.SelectedValue.ToString());            cdhi.CachedData["dateMonth"].SerializeDataInstance(this.ddlMonths.SelectedIndex + 1);            cdhi.CachedData["repData"].SerializeDataInstance(RetrieveAllRepData(db));            cdhi.CachedData["regionData"].SerializeDataInstance(RetrieveAllRegionData(db));            cdhi.CachedData["summaryData"].SerializeDataInstance(RetrieveSummaryData(db));                            sd.Save();            newFile = sd.Document;            sd.Close(); }


Stáhnout ppt "4/13/2017 9:38 AM Michal Neuwirth © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes."

Podobné prezentace


Reklamy Google