webcast: managed smart tags mit vsto jens häupel.net technologieberater microsoft deutschland gmbh
TRANSCRIPT
![Page 1: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/1.jpg)
WebCast: Managed Smart Tags mit VSTO
Jens Häupel.NET TechnologieberaterMicrosoft Deutschland GmbHhttp://blogs.msdn.com/jensha
![Page 2: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/2.jpg)
Agenda Was sind Smart Tags überhaupt? Com Interfaces Abstraction in VSTO 2.0 Demo Deployment
![Page 3: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/3.jpg)
Was sind Smart Tags überhaupt?Bereitstellung von Aktionen für „losen“
Text Setzt Daten in KontextMS Word Task Pane
Option1
Option1
Child
Child
ChildChild
Label
LabelDie Anfrage SRX0815300 von Microsoft wurde noch nicht beantwortet
Wo?Finde Kunde
Finde Anfrage
Aktion?
![Page 4: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/4.jpg)
SmartTags in Word
![Page 5: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/5.jpg)
SmartTags in Word
![Page 6: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/6.jpg)
COM Interfaces
![Page 7: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/7.jpg)
Abstraktion in VSTO 2.0
Sehr einfaches und intuitives InterfaceKaspelt die COM-Interfaces ISMartTagAction
bzw. ISmartTagRecognizerFür spezifische Dokumente
Aggressivere Erkennungsmechanismen möglich
Für Dokumente einer bestimmten Vorlage Allgemeinere Erkennung, Gruppierung
![Page 8: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/8.jpg)
Klassen in VSTO 2.0
![Page 9: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/9.jpg)
SmartTags {Collection}Document bzw. Workbook Object
![Page 10: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/10.jpg)
Smart Tag mit VSTO 2.0Smart Tag mit VSTO 2.0
![Page 11: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/11.jpg)
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 lokalDokument lokal + Assembly vom ServerDokument und Assembly vom Server
Wenn Assembly zentral (Server), dann Pfad anpassen
![Page 12: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/12.jpg)
Deployment mit zentraler ASM Assembly Path per Code anpassen Zugriff über ServerDocument-Klasse
Pfad anpassen
Dim sd As ServerDocument = NothingTry sd = New ServerDocument("<full document path>") sd.AppManifest.Dependency.AssemblyPath = "<full assembly path>" sd.Save()Catch ex As System.Exception '...Finally If Not sd Is Nothing Then sd.Close() End IfEnd Try
![Page 13: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/13.jpg)
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
![Page 14: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/14.jpg)
![Page 15: WebCast: Managed Smart Tags mit VSTO Jens Häupel.NET Technologieberater Microsoft Deutschland GmbH](https://reader035.vdocuments.net/reader035/viewer/2022062622/55204d6849795902118be302/html5/thumbnails/15.jpg)
Ressourcen Visual Studio .NET and Office Development
http://msdn.microsoft.com/vstudio/office/
VSTO Team Bloghttp://blogs.msdn.com/vsto2
Office Interop Cookbookhttp://blogs.officezealot.com/whitechapel/archive/2004/07/31.aspx
Visual Studio 2005 Tools for the Microsoft Office SystemWord, Excel und Outlook mit .NET Code erweiternhttp://www.microsoft.com/germany/msdn/library/visualtools/visualstudio2005/VisualStudio2005ToolsForTheMicrosoftOfficeSystem.mspx