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

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

Visutal Studio Tools for Office 2007

Podobné prezentace


Prezentace na téma: "Visutal Studio Tools for Office 2007"— Transkript prezentace:

1 Visutal Studio Tools for Office 2007
4/12/2017 6:11 PM Visutal Studio Tools for Office 2007 Mgr. Michal Neuwirth ISV Technical Readiness Microsoft s.r.o. © 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 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

3 VSTO 3.0 VSTO 2005 SE VSTO 2005 VSTO 2003 Designery pro tvorbu UI
Microsoft Office Excel User-Defined funkce Podpora pro Workflow & Microsoft SharePoint Podpora mobilních zařízení 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 Umožňuje vytvářet vlastní řešení pro Doplněk pro
Microsoft Office 2007 Microsoft Office 2003 Doplněk pro Microsoft Visual Studio 2005 Professional Edition Microsoft Visual Studio Team System edice Visual Studio Tools for Microsoft Office VSTO 2005 SE Runtime Obsahuje kompletně VSTO 2005 runtime VSTO 2005 vlastní webcast Download zdarma

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 Primary Interop Assemblies
Office 2007 COM API PIA .NET Solution Office 2003 PIA dostupné jako download Office 2007 PIAs nadále mechanismus pro psaní managed kódu pro Office InfoPath má již vlastní managed OM Kompatibilita s Office 2003 Managed aplikace pro Office 2003 poběží bez rekompilace pro Office 2007 PIA je dispozici jako redistribuční balíček

8 Host Controls První generace .NET objektů rozšiřujících model Office
Bookmark XmlNode Range List Chart První generace .NET objektů rozšiřujících model Office

9 Windows Forms Controls
Lze použít Windows ovládací prvky pro dokumenty Wordu a Excelu Embedded do ActiveX kontejneru vytvořeného VSTO

10 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

11 Assembly Location & Name
Nasazení VSTO 2005 řešení Propojení mezi dokumentem a .NET assembly je zajištěno pomocí 2 vlastností ukazujících na manifesty Manifest může být součástí dokumentu Nebo separátně uložený pomocí ClickOnce Office 2003 a 2007 vyžadují full trust Word/Excel Document Assembly Location & Name Manifest

12 MS Office Professional 2003 a výše
Architektura VSTO Assembly Data Island Webové služby Schémata Klient VSTO Runtime LOB data .NET Framework MS Office Professional 2003 a výše Windows Klient Deployment Server

13 Požadavky na klienta Office 2003 Professional či standalone aplikace
4/12/2017 6:11 PM Požadavky na klienta Office 2003 Professional či standalone aplikace Excel, InfoPath, Outlook, Word Office 2007 všechny edice .NET Framework 2.0 VSTO 2005 SE runtime Office primary interop assemblies (PIAs) © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

14 Bezpečnost VSTO využívá .NET Code Access Security
4/12/2017 6:11 PM Bezpečnost VSTO využívá .NET Code Access Security Je vyžadován Full-trust Defaultně jsou .NET office aplikace zakázané Povolit politikou Podepsat Visual Studio nastavuje každému office projektu automaticky full-trust © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

15 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

16 VSTO Add-Ins VSTO 2005 přinesl nový loader ‘OTKLoadr’
Loader je podepsán společností Microsoft Podpora pro „shim“ Vytváření vlastních „managed“ add-ins Podpora během vývoje pro návrh či instalaci VSTO 2005 obsahuje pouze Outlook add-ins VSTO 2005 SE obsahuje add-ins pro většinu aplikací pro Office 2003 a Office 2007

17 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

18

19 demo Shared Add-in 4/12/2017 6:11 PM
1) Other projects types -> Extensibility -> Shared Add-in -> Word+Access Add Browser project Show Browser project + Preview data AdventureWorksDataSet Create 3 forms (frmSeznam, frmMain a frmDetail) -> Seznam a Detail obsahuje ovladaci prvky Main je spousti Do Connect dat otevreni frmMain INSTALL Addin -> RUN UNINSTALL Hotove reseni: AccessAddin_01 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.

20 Managed Add-in Framework
Zajišťuje tvorbu managed add-ins pro většinu aplikací Vytvořen shim managed add-in (COM wrapper) 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

21 demo Managed Add-in 4/12/2017 6:11 PM 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.

22 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

23 Současná řešení XLM WordBasic CommandBars (‘96) WLL, XLL
4/12/2017 6:11 PM 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í!!! 23 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

24 ve Formatting Toolbaru
4/12/2017 6:11 PM Současná řešení Vlastní tlačítka ve Formatting Toolbaru Vlastní Menu Vlastní Toolbar 24 © 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.

25 Word 2003 Možnost připojit toolbary k dokumentům
4/12/2017 6:11 PM 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 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/12/2017 6:11 PM 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 4/12/2017 6:11 PM 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 Excel 2003 Připojené toolbary k dokumentům
4/12/2017 6:11 PM Excel 2003 Připojené toolbary k dokumentům Všechny změny v prostředí se „kumulují“ v Excel toolbaru 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/12/2017 6:11 PM 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 4/12/2017 6:11 PM 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 Excel po otevření několika desítek dokumentů s připojenými toolbary…..
4/12/2017 6:11 PM Excel po otevření několika desítek dokumentů s připojenými toolbary….. 31 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

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

33 Vše v rámci záložky Add-Ins
4/12/2017 6:11 PM 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 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 Možnosti přizpůsobení
* 4/12/2017 6:11 PM * 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 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 Objekty mimo RibbonX Mini Toolbar Right-click (kontextová) menu
* 4/12/2017 6:11 PM * Objekty mimo RibbonX Mini Toolbar Right-click (kontextová) menu Status Bar 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 Tabs Groups Buttons Labels ToggleButtons Menus
* 4/12/2017 6:11 PM * Ovládací prvky Tabs Groups Buttons Labels ToggleButtons Menus SplitButtons CheckBoxes 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 Ovládací prvky EditBoxes DialogBoxLaunchers DropDowns ComboBoxes
* 4/12/2017 6:11 PM * Ovládací prvky EditBoxes DialogBoxLaunchers DropDowns ComboBoxes Galleries MS Office 2003: msoControlButton, msoControlEdit, msoControlPopup, msoControlComboBox, msoControlDropdown 37 * © 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.

38 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

39 Ribbon na úrovni aplikace
COM add-in který nahraje ribbon XML za běhu aplikace VSTO 2005 Shared Add-In projekt Implementace IRibbonExtensibility interface Návrat RibbonX XML v metodě GetCustomUI() VSTO 2005 SE Managed Add-in či shared Add-in přidání prvku Ribbon support do projektu Odkomentovat část TODO Přidání callback funkcí na zpracování událostí getImage, onAction, getEnabled, getPressed, …

40

41 XML Formát * * <tab id=“myTab” label=“My Tab”>
4/12/2017 6:11 PM * 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/12/2017 6:11 PM * 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 demo Můj první Ribbon 4/12/2017 6:11 PM
Ukazat u predchoziho dema, jak se pridava RibbonX support -> ukazat Ribbon1.xml Pote otevrit hotove reseni WordAddinRibbon Je zde krome vlastniho ribbonu tez vlozena polozka do Office Menu Spustit Clean Solution 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.

44 startFromScratch <ribbon startFromScratch=“true”>
* 4/12/2017 6:11 PM * 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 <startFromScratch/>
4/12/2017 6:11 PM <startFromScratch/> U predchoziho dema zadat pouze polozku startfromscratch CLEAN SOLUTION 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.

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
4/12/2017 6:11 PM 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 VBA Část CustomUI vložit jako část OpenXML formátu či jako Add-In
* 4/12/2017 6:11 PM * VBA Část CustomUI vložit jako část OpenXML formátu či jako Add-In Provést referenci na VBA makra jako CallBack funkce Sub excelCalcMacro(ByVal control As Variant) ‘kod End Sub <button id=“myButton” label=“My Favorite Macro” onAction=“excelCalcMacro” /> 48 * © 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.

49 Doporučené postupy UI Obsahuje…. File Menu
* 4/12/2017 6:11 PM * 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 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

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

52 Podokno úloh dokumentu
Propojení mezi podoknem úloh a dokumentem Vytvořit XML schéma dokumentu a připojit ho k dokumentu Zpracování událostí enter/leave prvků bookmarks/xmlnode Zpracování událostí enter/leave dokumentu Ovládací prvky Windows Forms Vlastní ovládací prvky Přidávání prvků Me.ActionsPane.Controls.Add(myControl) Podpora pro vytváření podokna úloh v módu návrhu Již žádné ISmartDocument interface VSTO 2005

53 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 VSTO 2005 SE

54 Sdílený Add-In

55 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.

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

57 demo SDI podokno úloh 4/12/2017 6:11 PM New Excel 2007 Add-in
Pridat projekt Browse CustomTaskPanes.Add(New Browser.ucDetail, "Adventure Works Detail").Visible = True Start CLEAN SOLUTION Hotove reseni: ExcelTaskPane 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.

58 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

59 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()

60 MDI podokno úloh Interakce s Ribbon prvkem Invalidate()
4/12/2017 6:11 PM MDI podokno úloh Interakce s Ribbon prvkem Invalidate() Otevrit WordAddIn_01 Ukazat tam toggle tlacitko, vytvareni ribbon prvku a tez tridu pro pamatovani si CTP Spustit CLEAN SOLUTION 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.

61 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

62 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx

63 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Dotaznik. docx Pohled vývojáře: modulární soubor

64 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček Dotaznik. docx Pohled vývojáře: modulární soubor

65 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček [content types].xml Dotaznik. docx Pohled vývojáře: modulární soubor

66 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček [content types].xml Části dokumentu word / xl / ppt Dotaznik. docx Pohled vývojáře: modulární soubor

67 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček [content types].xml Části dokumentu word / xl / ppt Dotaznik. docx Dokument, Aplikace, uživatelské vlastnosti dokumentu docProps Pohled vývojáře: modulární soubor

68 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček [content types].xml Části dokumentu word / xl / ppt Dotaznik. docx Dokument, Aplikace, uživatelské vlastnosti dokumentu docProps Vztahy _rels Pohled vývojáře: modulární soubor

69 Architektura Office Open XML
Pohled uživatele: jeden Office “soubor” Dotaznik. docx Balíček [content types].xml Části dokumentu word / xl / ppt Dotaznik. docx Dokument, Aplikace, uživatelské vlastnosti dokumentu docProps Vztahy _rels Uživatelská XML makra, … custom fld Pohled vývojáře: modulární soubor

70 Základní komponenty Balíček Část balíčku Typy obsahu Vztahy
ZIP kontejner Část balíčku Soubory v ZIPu Většina jsou XML soubory Dají se vložit i binární soubory Typy obsahu každá část má typ obsahu (text, jpg,...) Vztahy libovolná část, která referencuje jinou, či hraje roli v provázání dokumentů

71 demo Struktura balíčku 4/12/2017 6:11 PM 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.

72 Přínosy Lepší interoperabilita Nové integrační scénáře
Publikovaná (ECMA) specifikace formátu Meziplatformní interoperabilita Čeká se na ISO standard Nové integrační scénáře Vhodné pro integraci dokumentů a LOB systémů Práce na straně serveru bez použití Office API či dokonce Office aplikací Ochrana privátních informácí Lze určité části označit za důvěrné a při předání dokumentu je odstranit

73 Možnosti pro vývojáře Tvorba řešení na práci s Office soubory bez Office API System.IO.Packaging Office Open XML formáty používají Open Packaging Conventions Přístup/údržba částí a vztahů v souboru Stará se o funkcionalitu ZIPování na všech úrovní Základní XML programování XPath – Navigace v obsahu XML DOM – Manipulace s obsahem

74 Generování dokumentu Webový klient Tlustý klient Prezentační vrstva
služeb Vrstva obch.logiky Webový klient Tlustý klient ASP.NET Aplik. Web Services Dávkový proces

75 Generování dokumentu Webový klient Tlustý klient Prezentační vrstva
služeb Vrstva obch.logiky Webový klient Tlustý klient ASP.NET Aplik. Web Services Dávkový proces

76 Generování dokumentu Webový klient Tlustý klient Prezentační vrstva
služeb Vrstva obch.logiky Webový klient Tlustý klient ASP.NET Aplik. Web Services Dávkový proces .NET Packaging API

77 Generování dokumentu Webový klient Tlustý klient Prezentační vrstva
služeb Vrstva obch.logiky Webový klient Tlustý klient ASP.NET Aplik. Web Services Dávkový proces .NET Packaging API

78 System.IO.Packaging Přidávání častí dokumentu Načítání a úprava obsahu
Tvorba nových vztahů Důležité třídy Package PackagePart PackageRelationship

79 System.IO.Packaging Otevření balíčku
using (Package package = Package.Open(packagePath, FileMode.Open,FileAccess.ReadWrite)) { Uri uriPartTarget = new Uri("/word/styles1.xml", UriKind.Relative); PackagePart newPackagePart = package.CreatePart(uriPartTarget, "application/vnd.ms-word.styles+xml"); using (FileStream fileStream = new FileStream(stylePath, FileMode.Open, FileAccess.Read)) CopyStream(fileStream, newPackagePart.GetStream()); } }

80 System.IO.Packaging Otevření balíčku
Přístup k části dokumentu (GetPart) using (Package package = Package.Open(packagePath, FileMode.Open,FileAccess.ReadWrite)) { Uri uriPartTarget = new Uri("/word/styles1.xml", UriKind.Relative); PackagePart newPackagePart = package.CreatePart(uriPartTarget, "application/vnd.ms-word.styles+xml"); using (FileStream fileStream = new FileStream(stylePath, FileMode.Open, FileAccess.Read)) CopyStream(fileStream, newPackagePart.GetStream()); } }

81 System.IO.Packaging Otevření balíčku
Přístup k části dokumentu (GetPart) Vytvoření části dokumentu (CreatePart) using (Package package = Package.Open(packagePath, FileMode.Open,FileAccess.ReadWrite)) { Uri uriPartTarget = new Uri("/word/styles1.xml", UriKind.Relative); PackagePart newPackagePart = package.CreatePart(uriPartTarget, "application/vnd.ms-word.styles+xml"); using (FileStream fileStream = new FileStream(stylePath, FileMode.Open, FileAccess.Read)) CopyStream(fileStream, newPackagePart.GetStream()); } }

82 System.IO.Packaging Otevření balíčku
Přístup k části dokumentu (GetPart) Vytvoření části dokumentu (CreatePart) Přidání obsahu do části dokumentu using (Package package = Package.Open(packagePath, FileMode.Open,FileAccess.ReadWrite)) { Uri uriPartTarget = new Uri("/word/styles1.xml", UriKind.Relative); PackagePart newPackagePart = package.CreatePart(uriPartTarget, "application/vnd.ms-word.styles+xml"); using (FileStream fileStream = new FileStream(stylePath, FileMode.Open, FileAccess.Read)) CopyStream(fileStream, newPackagePart.GetStream()); } }

83 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Architektura

84 Office XML Data Store Vlastní definovaná XML data lze uložit do separátní části dokumentů XML lze uložit jako Document properties WSS meta-data Custom XML (s/bez XML schéma) Externí aplikace mohou číst/zapisovat tato data Doc/Template Doc Parts VBA XML Externí aplikace

85 Manuální práce s XML Manuální přidání

86 CustomXMLParts VBA či .NET Operace
Přidání nového CustomXMLPart Load() - nahrání externího XML souboru LoadXML() – nahrání XML řetězce Delete() Práce s XML DOM Document CustomXMLParts CustomXMLPart

87 demo XML Parts v Excelu 4/12/2017 6:11 PM Otevrit ExcelCustomXMLPart
Je zde dynamicke vytvareni prvku v ribbonu Je zde prace s XML Party 4) CLEAN SOLUTION 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.

88 XML Schéma Novinka v Office 2003
Připojené XML schéma k dokumentu či šabloně Namapování regionů v dokumentu ke schématu Získávání dat od uživatele Save as XML – pouze data Nutné pro SmartDocuments K dispozici pro Word a Excel 2007

89 Content Controls Word 2007 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 Mohou být použity pomocí v rámci document parts 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

90 ContentControls VBA či .NET Operace
Dynamicky přidávat content controls Inicializace a naplnění prvků Změna obsahu Zpracování událostí Document ContentControls ContentControl

91 demo Word Content Controls 4/12/2017 6:11 PM
Ukazat na WordPLaceholders\StatusReport.docx jak se dodavaji placeholders Pote ukazat projekt Placeholders Ukazat Otevreni dokumentu, Pridani placeholderu, Zpracovani udalosti Uninstall 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.

92 demo Presentation Maker 4/12/2017 6:11 PM
Otevrit projekt PresentationMaker Auto prezentace je v Office menu CLEAN SOLUTION 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.

93 demo Visio Diagram 4/12/2017 6:11 PM VisioDiagram solution
CLEAN SOLUTION 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.

94 demo Formuláře pro Word 4/12/2017 6:11 PM WordFormular solution
CLEAN SOLUTION 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.

95 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Outlook Architektura

96 Objektový model Rozšíření existujícího modelu, nevzniká nový model
* 4/12/2017 6:11 PM 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. 96 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

97 Outlook API * Outlook 2000/2002/2003 Outlook 2007 Outlook OM Outlook
4/12/2017 6:11 PM 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. 97 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

98 * 4/12/2017 6:11 PM 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. 98 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

99 * 4/12/2017 6:11 PM Bezpečnost --- Bezpečnostní dotazy matou uživatele, frustrují vývojáře a přinášejí „problémy“ IT odborníkům CDO bezpečnost není integrována s bezpečnostním Add-in modelem Vývojáři se „uchylují“ k řešením třetích stran Cross-process aplikace jsou vždy untrusted pro Outlook OM Guard ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 99 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

100 Bezpečnost řešení Instalované Add-iny mají bezpečný přístup do OOM
* 4/12/2017 6:11 PM Bezpečnost řešení Instalované Add-iny mají bezpečný přístup do OOM Zpřístupnění x-process aplikací pomocí bezpečného proxy COM-Addinu ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 100 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

101 * 4/12/2017 6:11 PM Výkonnost --- Enumerace velkých kolekcí v OOM není výkonnostně zoptimalizovaná Pro rychlost se používá CDO/ExMAPI, které přinášejí další problémy (stav, nasazení, bezpečnost) Vyhledávání je pomalé jak v UI tak programově ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 101 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

102 * 4/12/2017 6:11 PM Výkonnost řešení Tabulka poskytuje read-only řádky pro rychlé enumerace, vyhledávání a řazení Využívají se kontextové indexery pro vyhledávání dle prefixu či podřetězců ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 102 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

103 Formuláře --- Vlastní formuláře nepodporují témata
* 4/12/2017 6:11 PM Formuláře --- Vlastní formuláře nepodporují témata Problémy s kešováním formulářů Interpretovaný VBScript kód běží mimo formuláře, těžké na vývoj a údržbu Těžké „klonování“ standardních formulářů kvůli nedostatku ovládacích prvků Rozšíření stávajících formulářů je složité Není integrace s Add-in modelem ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 103 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

104 Formuláře řešení Podpora rozšiřování stávajících formulářů
* 4/12/2017 6:11 PM Formuláře řešení Podpora rozšiřování stávajících formulářů Adjoining a separátní regiony pro vlastní i standardní formuláře Form Regions se vytvářejí pomocí Outlook Forms Designeru Formuláře jsou implementovány jako Add-iny Nasazení pomocí Windows registry ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 104 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

105 Ovládací prvky Nové ovládací prvky Ovládací prvky podporují témata
* 4/12/2017 6:11 PM Ovládací prvky Nové ovládací prvky Category Strip a Button Contact Photo Electronic Business Card Preview Scheduling Free/Busy InfoBar Date and Time Picker Check, Option, Edit, Label, Frame (MSForms) Ovládací prvky podporují témata Podpora událostí u ovládacích prvků ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 105 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

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

107 * 4/12/2017 6:11 PM Custom Task Pane (CTP) Možno vytvářet pro Outlook Inspector nebo Explorer okna Dokovatelné na strany nebo dolů Možnost zobrazit více CTP Vytvořeny jako ActiveX nebo Ovládací prvek pro Winforms Add-in musí implement Office.ICustomTaskPaneConsumer ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 107 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

108 Command UI Stávající CommandBar kód je zobrazen v záložce Add-ins v Inspector okně Menu Commands -> Menu Commands skupina Toolbar Commands ->Toolbar Commands skupina Custom Toolbar -> Custom Toolbars skupina Preferovaný způsob je rozšíření prvku Ribbon © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

109 Application Modifikace kontextových menu pro přidání vlastních říkazů
* 4/12/2017 6:11 PM Application Modifikace kontextových menu pro přidání vlastních říkazů Application ItemLoad pro práci s položkami Události pro kustomizaci Context Menu Accounts/Account Categories/Category Exchang boxServerVersion, Exchang boxServer, AutoDiscoveryURL Stores/Store, DefaultStore SendAndReceive ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 109 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

110 * 4/12/2017 6:11 PM PropertyAccessor Přístup k MAPI vlastnostem úložišť či složek které nejsou k dispozici v OOM Poskytuje operace set/get k vlastnostem tříd Store, Attachment, AddressEntry, Folder či Item-level Poskytuje přístup k low-level údajům Binární vlastnosti vráceny jako pole bajtů Datumy vráceny jako UTC namísto Local Time ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 110 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

111 ExchangeUser Rozšíření AddressEntry ExchangeUser vlastnosti
* 4/12/2017 6:11 PM ExchangeUser Rozšíření AddressEntry GetContact GetExchangeUser GetExchangeDistributionList GetMemberOfList ExchangeUser vlastnosti .FirstName, .LastName, .JobTitle, .Department, .PrimarySmtpAddress ..... Podporuje PropertyAccessor pro vlastní vlastnosti Session.SelectNamesDialog zobrazuje Outlook Address Book dialog ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 111 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

112 Enhanced Events Application_ItemLoad pro odchycení/zpracování
* 4/12/2017 6:11 PM Enhanced Events Application_ItemLoad pro odchycení/zpracování Nahrání položky do Reading Pane In-cell editace v rámci View Události pro práci s přílohami na úrovni položek Události složek Folder_BeforeItemRemove Folder_BeforeFolderRemove Události úložišť Stores_AddStore Stores_BeforeStoreRemove ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 112 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

113 StorageItem K dispozici přes Folder.GetStorage
* 4/12/2017 6:11 PM StorageItem K dispozici přes Folder.GetStorage Přístup k existujícím skrytým zprávám vytvořených pomocí CDO/ExMAPI Lze získat pomocí Subject, MessageClass či EntryID Pomocí Attachments.Add, Body, UserProperties či PropertyAccessor ukládat data z add-inů do StorageItem StorageItem.Save pro persistentní uložení dat ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 113 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

114 Pravidla Postaveno nad Store objektem Session.DefaultStore.GetRules()
* 4/12/2017 6:11 PM Pravidla Postaveno nad Store objektem Session.DefaultStore.GetRules() Implementuje nejčastěji používaná pravidla, akce a podmínky Statické kolekce RuleActions RuleConditions a RuleExceptConditions ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 114 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

115 Outlook Ribbon Vlastní formuláře Práce s úložištěm
4/12/2017 6:11 PM Outlook Ribbon Vlastní formuláře Práce s úložištěm Otevrit OutlookPublishAddin Instalace -> Spustit 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.

116 Agenda VSTO 2005 SE Add-ins RibbonX Podokno úloh (Task pane) Open XML
Další vlastnosti a scénáře Architektura

117 VSTO Design-time Stack
4/12/2017 6:11 PM 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.

118 VSTO Design-time Adapters
4/12/2017 6:11 PM VSTO Design-time Adapters Excel Visual Studio Design Time Adaptor Addin (VSTOExcelAdaptor.dll) Word Visual Studio Design Time Adaptor Addin (VSTOWordAdaptor.dll) 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.

119 VSTO Runtime Stack Office Client Host VSTO Runtime Doc-Level Solution
4/12/2017 6:11 PM 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.

120 VSTO Runtime Host Item Controls Windows Forms Controls
4/12/2017 6:11 PM 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.

121 VSTO Control Hosting Custom Windows Forms UserControl
4/12/2017 6:11 PM 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.

122 Doc-Level Host Item Controls
4/12/2017 6:11 PM 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.

123 VSTO Add-ins Excel Internal Behavior Exposed COM Object Model
4/12/2017 6:11 PM 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.

124 VSTO Runtime Components
4/12/2017 6:11 PM 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.

125 Office Interfaces Nové interfaces VSTO Podporuje RequestService
4/12/2017 6:11 PM Office Interfaces Nové interfaces VSTO Podporuje RequestService Hosting controls 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.

126 VSTO Verze VSTO 2003 aplikace použijí v1 runtime
4/12/2017 6:11 PM VSTO Verze VSTO 2003 aplikace použijí v1 runtime VSTO 2005 aplikace použijí v2 runtime VSTO 2007 aplikace použijí v3 runtime Runtime vyšší verze obsahuje runtime nižších verzí 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.

127 Form template projects
VSTO v3 design-time VSTO 2005 SE design-time VSTO 2005 design-time Document-level projects for: Word 2003 document, template Excel 2003 workbook, template Ribbon support for the 2007 Office release Task pane support for the 2007 Office release Add-ins for Outlook 2003 Form region support for Outlook 2007 Document-level projects for: Word 2007 document, template Excel 2007 workbook, template (new XML file formats) Form template projects for InfoPath 2007 More add-ins for the 2007 Office release: Microsoft® Office Access 2007 Microsoft® Office SharePoint® Designer 2007 Microsoft® Office Project 2007 Microsoft® Office Publisher 2007 Core add-ins for 2007 release: Outlook 2007, Word 2007, Excel 2007, PowerPoint 2007, Visio 2007, InfoPath 2007 Core add-ins for Microsoft Office System: Outlook 2003, Word 2003, Excel 2003 PowerPoint 2003, Visio 2003

128 Zdroje Office Developer Center Hands-on Labs for VSTO WebCasty (česky)

129 Nástroje ke stažení Download VSTO 2005 SE COM Shim Wizard download

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

131 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í.

132 Závěr Vývoj vlastních RibbonX prvků Vývoj sdílených Add-inů
Podokno úloh nezávislé na dokumentech jak pro SDI tak i MDI prostředí Dynamická tvorba Open XML dokumentů

133


Stáhnout ppt "Visutal Studio Tools for Office 2007"

Podobné prezentace


Reklamy Google