Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH

Ähnliche Präsentationen


Präsentation zum Thema: "WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH"—  Präsentation transkript:

1 WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH http://blogs.msdn.com/jensha

2 Agenda Was sind Smart Tags überhaupt? Com Interfaces Abstraction in VSTO 2.0 Demo Deployment

3 Was sind Smart Tags überhaupt? Bereitstellung von Aktionen für losen Text Setzt Daten in Kontext MS WordTask Pane Option1 Child Label Die Anfrage SRX0815300 von Microsoft wurde noch nicht beantwortet Wo?Finde Kunde Finde Anfrage Aktion?

4 SmartTags in Word

5

6 COM Interfaces

7 Abstraktion in VSTO 2.0 Sehr einfaches und intuitives Interface Kaspelt die COM-Interfaces ISMartTagAction bzw. ISmartTagRecognizer Für spezifische Dokumente Aggressivere Erkennungsmechanismen möglich Für Dokumente einer bestimmten Vorlage Allgemeinere Erkennung, Gruppierung

8 Klassen in VSTO 2.0

9 SmartTags { Collection } Document bzw. Workbook Object

10 Smart Tag mit VSTO 2.0

11 Deployment Manifest-basiert Application Manifest im Dokument enthalten Default nach Erstellung in Visual Studio Dokument und Assembly im gleichen Ordner (lokal) Szenarien: Dokument und Assembly lokal Dokument lokal + Assembly vom Server Dokument und Assembly vom Server Wenn Assembly zentral (Server), dann Pfad anpassen

12 Deployment mit zentraler ASM Assembly Path per Code anpassen Zugriff über ServerDocument-Klasse Pfad anpassen Dim sd As ServerDocument = Nothing Try sd = New ServerDocument(" ") sd.AppManifest.Dependency.AssemblyPath = " " sd.Save() Catch ex As System.Exception '... Finally If Not sd Is Nothing Then sd.Close() End If End Try

13 Zusammenfassung Kontext und Aktionen über losen Text Information Bridge Framework Informationen an Ort und Stelle Seht einfache und intuitive Umsetzung Gewohnte Tools und Sprachen Managed Code

14

15 Ressourcen Visual Studio.NET and Office Development http://msdn.microsoft.com/vstudio/office/ http://msdn.microsoft.com/vstudio/office/ VSTO Team Blog http://blogs.msdn.com/vsto2 http://blogs.msdn.com/vsto2 Office Interop Cookbook http://blogs.officezealot.com/whitechapel/archive/2004/07/31.aspx http://blogs.officezealot.com/whitechapel/archive/2004/07/31.aspx Visual Studio 2005 Tools for the Microsoft Office System Word, Excel und Outlook mit.NET Code erweitern http://www.microsoft.com/germany/msdn/library/visualtools/visualstu dio2005/VisualStudio2005ToolsForTheMicrosoftOfficeSystem.mspx http://www.microsoft.com/germany/msdn/library/visualtools/visualstu dio2005/VisualStudio2005ToolsForTheMicrosoftOfficeSystem.mspx


Herunterladen ppt "WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH"

Ähnliche Präsentationen


Google-Anzeigen