Contact

netcreate OHG
  • Send mail to the author(s) E-mail
  • XING

My talks

Community

.NET Developer Group Braunschweig Co-Lead INETA Deutschland Microsoft Community Leader/Insider Program (CLIP) .NET GUI Just Community e.V.

Categories  RSS 2.0

Archives

Blogs of friends

Comments

Stats

Total Posts: 229
This Year: 62
This Month: 0
This Week: 0
Comments: 105

Tags

 

Erstellung eines Add-Ins für verschiedene Office Versionen

Posted in Office 2007 |  VSTO at Tuesday, June 24, 2008 7:45 PM W. Europe Daylight Time

Ich werde oft gefragt, ob man ein Add-In für Office 2007 und Office 2003 schreiben kann. Das problematische daran ist, dass es ab Office 2007 eine RibbonBar gibt, welche nicht in Office 2003 vorhanden ist.

Andrew Whitechapel hat sich diesem Thema ausführlich gewidmet und einen sehr interessanten Weg aufgezeigt. Andrew empfiehlt mit ComImport das "IRibbonExtensibility" Interface zu implementieren und somit die Abhängigkeiten der Office 2007 PIAs zu verhindern.

Ein Nachteil ist, dass man nicht zum Erstellen der Ribbon den neuen Visual Studio Ribbon Desginer einsetzen kann, da das Add-In als Office 2003 Projekt erstellt wird.

Lesenswert!

Link: Add-ins for Multiple Office Versions without PIAs

Shortcut Highlight für Outlook

Posted in Office 2007 | Allgemein at Thursday, June 12, 2008 9:28 PM W. Europe Daylight Time

Ich habe ein neues Lieblings-Shortcut bei Outlook!

strg+v

Tja, so neu hört sich das nicht an, aber in der folgenden Kombination war es für mich ein AHA-Erlebnis ;)

Man kopiert eine URL und gibt Outlook den Focus (klick auf Outlook). Danach einfach strg-v drücken und Schwups ist eine Email auf.

strgv

Das Shortcut geht mit Outlook 2003 & 2007 (davor habe ich nicht getestet).

Vorbei ist die Zeit der vielen Klicks, bis ich einen Link verschickt habe! :)

(Eine ähnliche Funktionalität für den IE hatte ich hier schon mal vorgestellt.)

WPF erhält ein Office Ribbon Control

Posted in .NET Entwicklung |  Office 2007 at Monday, May 12, 2008 10:10 PM W. Europe Daylight Time

...gerade gelesen WPF wird ein Ribbon Control erhalten:

Another oft-requested control is the Office Ribbon, and I'm sure you'll be pleased to know that we're also shipping an implementation of that control, also out-of-band, before the end of the year. The ribbon will be fully implemented in WPF, will be compliant with the UI design guidelines and have an intuitive collection-based API.

und sogar ein DataGrid. :-)

Link:

VSTO Neuerungen im VS 2008 SP1

Posted in Office 2007 |  VSTO at Monday, May 12, 2008 9:33 PM W. Europe Daylight Time

Im Blog des VSTO Teams kann man nachlesen, welche VSTO Neuerungen im Service Pack 1 für Visual Studio 2008 enthalten sind.

Ein Highlight ist, dass es mit dem SP1 möglich sein wird, mit einem Add-In Excel und Word Dokumente zu erweitern. Somit kann man z.B. einen Smart Tag für ein Dokument erstellen.

Links:

Die Excel "Workbook.Saved" Eigenschaft

Posted in Office 2007 |  VSTO at Sunday, May 11, 2008 10:31 PM W. Europe Daylight Time

Excel bietet mit der Eigenschaft "Globals.ThisWorkbook.Saved" die Möglichkeit zu überprüfen, ob ein Excel Dokument seit dem letzten Speichern verändert wurde.

Im MSDN steht:

Eigenschaftenwert
true, wenn seit dem letzten Speichern der Arbeitsmappe keine Änderungen an dieser vorgenommen wurden, andernfalls false.

 

In einem Projekt benötigte ich diese Abfrage, musste aber feststellen, dass diese nicht funktioniert, wenn die Datei direkt aus dem Webbrowser herunter geladen wird. Da die Datei beim Herunterladen zwischengespeichert wird, ist die Eigenschaft true, obwohl das Excel Dokument nicht geöffnet wurde bzw. manuell gespeichert wurde.

Guides to the 2007 Office system user interface

Posted in Office 2007 | Allgemein at Thursday, May 08, 2008 8:46 PM W. Europe Daylight Time

Unter diesem Titel bietet Microsoft eine interaktive Führung an, wo Umsteigern (Office 2003 -> Office 2007) geholfen wird, die alten Menüpunkte aus Office 2003 wiederzufinden.

If you want to explore the rich, new design with some guidance, try the interactive guides to help you quickly learn where things are. You can run the guides right here, or you can download them to your own computer for use any time you like.

If you prefer to see just a list of all Office 2003 menu and toolbar commands and their locations in the 2007 Office system, open one of the Microsoft Office Excel mapping workbooks, which you can browse, customize, print, and save on your computer. Instructions on the first tab of each workbook provide tips for customizing, finding, and printing the lists.

Link:

Übersicht über die Änderungen im Object Model von Outlook 2003 & Outlook 2007

Posted in Office 2007 |  VSTO at Thursday, May 08, 2008 8:19 PM W. Europe Daylight Time

Eric Carter hat in seinem Post einige MSDN Links zusammengetragen, welche die Änderungen im Object Model von Outlook 2003 und Outlook 2007 aufzeigen. Des Weiteren hat er sich die Mühe gemacht und zwei Interface Definition Language (IDL) Files für die beiden Outlook Versionen erstellt. Ein "must have" für alle VSTO Outlook-Entwickler! :-)

Link:

Feedback Request für das VS 2008 SP1 vom VSTO Team

Posted in Office 2007 |  VS Team System |  VSTO at Sunday, May 04, 2008 8:20 PM W. Europe Daylight Time

Das Visual Studio Tools for Office Team bittet um Feedback für das kommende Visual Studio 2008 Service Pack 1.

Weitere Informationen dazu unter http://blogs.msdn.com/vsto/archive/2008/04/30/feedback-requested-for-vs-2008-service-pack-1-christin-boyd.aspx

VSTO 3.0 deploying mit dem Windows Installer

Posted in Office 2007 |  VSTO at Friday, March 28, 2008 9:11 AM W. Europe Standard Time

Seit ein paar Tagen gibt es in der MSDN Code Gallery ein Projekt mit dem Titel "Deploying a VSTO 3.0 solution for the Office 2007 using Windows Installers". Der Name ist Programm und stellt Samplecode für ein deploying als MSI File zur Schau.

Details:

The code samples are written in Visual Basic and C#. The folowing list of projects and samples describes how you can integrate these into your solution to deploy with a Windows Installer file.
Projects - you can add these custom actions to your setup project.
1. Component Check
2. ClickOnceCustomActions - install into the ClickOnce cache
3. DocumentManifestCustomActions - update the document custom properties to point to the assembly
4. InclusionListCustomActions - add an entry to pre-trust your solution
Samples
1. Basic installer - Hello World add-in
2. Additional components - #1 + helper library
3. Inclusion list
4. Change Manifest
5. ClickOnce cache

Link

Wie erstelle ich ein VSTO Access Add-In

Posted in Office 2007 |  VSTO at Saturday, February 23, 2008 2:51 PM W. Europe Standard Time

Auf dem Launch Event in Frankfurt wurde ich mehrfach gefragt, warum es keinen Support für Access 2007 in den VSTO 3.0 gibt und welche Möglichkeiten es gibt dieses zu ändern.

Andrew Whitechapel hat dies ausführlich in einem Post erklärt und zeigt wie einfach ein Word Add-In modifizieren werden kann, damit es ein Access Add-In wird. Dazu sind 11 Schritte nötig und es funktioniert auch mit VSTO 2005 SE. (Aber Achtung das Beispiel ist nicht getestet und dient nur zur Demonstrationszwecken.)

Außerdem hat er eine Antwort darauf gegeben, warum Access nicht berücksichtigt wurde. Das VSTO Team musste irgendwo einen sinnvollen Strich ziehen, da der Testaufwand eines Add-In Template hoch ist.

Link: Post von Andrew

VSTO 3.0 Power Tools veröffentlicht

Posted in Office 2007 |  VSTO at Friday, February 22, 2008 1:14 PM W. Europe Standard Time

Wie bei Andrew Whitechapel nachzulesen, wurden die VSTO 3.0 Power Tools veröffentlicht.

Folgende Tools gibt es:

  • Open XML Package Editor
    A graphical treeview-based editor for examining and editing Open XML Package files (including Word, Excel and PowerPoint documents).
  • Ribbon IDs ToolWindow
    A custom tool window that displays all re-usable built-in Office Ribbon IDs.
  • Office Custom UI Manager
    A set of classes for coordinating multiple instances of Ribbon, custom task pane, and custom form region objects.
  • Office Interop API Extensions
    A set of C# classes for handling parameterized properties and optional/named parameters, as well as for LINQ-enabling Office collection objects.
  • SharePoint Feature Sweeper
    A GUI tool that cleans up unwanted SharePoint features from the developer's environment.
  • SharePoint Workflow Package Generator
    A tool to package a SharePoint workflow project so that it can be deployed.
  • VSTO/VSTA Pipeline Verifier
    A GUI tool that reflects over custom pipeline assemblies to validate the complete VSTA pipeline.
  • VSTO Developer Cleaner
    A GUI tool that removes leftover build artifacts from the developer's computer.
  • VSTO Troubleshooter
    A diagnostic tool that examines a computer for the necessary pre-requisites for running VSTO solutions.

Den Download gibt es hier.

Update

Jens Häupel hat in seinem Blog einen lesenswerten Artikel zu den Power Tools veröffentlicht. Zum Artikel geht es hier

Unterschiede zwischen Outlook Form Region und Custom Task Pane

Posted in Office 2007 at Friday, January 04, 2008 11:11 AM W. Europe Standard Time

Da ich öfter gefragt werde, wo der Unterschied zwischen Outlook Form Region und Custom Task Pane ist, kann ich diesen Blogeintrag "Hiding and Showing an Adjoining Outlook Form Region" als Einstieg empfehlen.

Nebenbei beantwortet dieser auch noch die Frage, ob ein Outlook Form Region während der Laufzeit an/ausblendbar ist.
Antwort: Nein :)

Outlook Add-Ins einfach debuggen mit einem eigenem Developer-Profil

Posted in .NET Entwicklung |  Office 2007 at Wednesday, January 02, 2008 11:16 PM W. Europe Standard Time

Alle Outlook Add-In-Entwickler kennen sicher das Problem, wenn das eigene Add-In debuggt werden soll, startet jedes Mal das eigene Outlook. ...und das kann schon mal länger dauern, je nachdem wie groß das Postfach ist :-)

Mit einem kleinen Trick kann man sich behelfen. Unter "Start->Systemsteuerung->Mail" wird einfach ein neues Profil angelegt, z.B. mit dem Namen "developer".

profil

Der Vorteil ist, dass man eine eigene E-Mailadresse benutzen kann und wenn das Profil kaputt geht, bleibt das eigene unangetastet (normalerweise ;-)).

Nachdem man durch drücken auf "hinzufügen" ein neues Profil angelegt hat, muss dieses noch in Visual Studio hinterlegt werden.

vs_profile

Dazu wechselt man einfach in die Debug Optionen beim Visual Studio Projekt und gibt als Start Applikation Outlook (outlook.exe) an. Nun muss nur noch im Command line arguments Feld folgende Einstellung hinterlegt werden: /Profile "<profilename>" (Die " müssen angegeben werden).

Et voila nun startet jedes Mal Outlook mit dem neu angelegten "developer" Profil... und das fix! :)

Was der VS 2008 Ribbon Designer nicht kann

Posted in .NET Entwicklung |  Office 2007 at Saturday, December 22, 2007 1:29 PM W. Europe Standard Time

Der Ribbon Designer ist eines der Highlights in Visual Studio 2008. Mit ihm kann man sehr einfach Ribbons erstellen und bearbeiten. Dennoch kann der Ribbon Designer nicht alles was man mit der Hand in XML erstellen kann.

Mit dem Ribbon Designer kann man keine "in-built" Office Controls benutzen, z.B. den Font Color Picker. Folgender Code initialisiert auf der Ribbon den Font Color Picker:

<group id="myGroup" label="My Group"> <gallery idMso="FontColorPicker"></gallery> </group>

fontpicker_detail

Weiterhin kann man keine Commands setzen, z.B. die Save Methode überschreiben:

<commands> <command idMso="FileSave" onAction="mySave"/> </commands>

Der Auszug aus der MSDN Hilfe zeigt, dass noch ein paar weitere Dinge nicht implementiert sind:

Use the Ribbon (XML) item if you want to customize the Ribbon in a way that is not supported by the Ribbon (Visual Designer) item. Use the Ribbon (XML) item to customize the Ribbon in the following ways:

  • Add built-in groups to a custom tab or built-in tab.

  • Add built-in controls to a custom group.

  • Add custom code to override the event handlers of built-in controls.

  • Customize the Quick Access Toolbar.

  • Share a Ribbon customization between add-ins by using a qualified ID.

Zum Glück kann man die Ribbon in XML konvertieren (Export to XML), leider ist das ein One-Way. Einmal exportiert und man muss wie früher die Ribbon im XML customizien. Vielleicht geht das ja in der nächsten Version von Visual Studio, schön wäre es!

Neue MS IFilter Versionen released

Posted in .NET Entwicklung |  Office 2007 |  SQL Server 2005 at Thursday, December 20, 2007 1:08 PM W. Europe Standard Time

Wie auf dem MS Sharepoint Blog zu lesen, gibt es neue Versionen der IFilter (sogar auch für x64 ;-). Was mir aber aufgefallen ist, was ist den WDS 4 (die neue Version der Windows Desktop Search)?

Die Neuerungen auf einen Blick:

Contents:

The filter pack includes the following IFilters:

·         Metro (.docx, .docm, .pptx, .pptm, .xlsx, .xlsm, .xlsb)

·         Zip (.zip)

·         OneNote (.one)

·         Visio (.vdx, .vsd, .vss, .vst, .vdx, .vsx, .vtx)

Supported Products:

·         SPS2003, MOSS2007, Search Server 2008, Search Server 2008 Express

·         WSSv3

·         Exchange 2005

·         SQL 2005, SQL 2008

·         Windows Desktop Search 3.01, WDS 4

Overview:

·         The Filter Pack installs the above IFilters on the machine

·         Each IFilter is registered with Windows Indexing Service

·         Each product above has a corresponding KB to describe how to register the filters

Q&A:

“I noticed <product X> is not listed as a supported product, why is it not included?”

-       When we created the project plan we came up with the list of Microsoft Search products that we would be supporting.  During the project lifecycle we’ve tested to ensure that the Filter Pack works properly with each of these products.  We will work to determine if any new Search products can be supported in the future.

 

“Is the Filter Pack localized for <language y>?”

-       The Filter Pack will be localized in 36 different languages (see below).  It has been passed off for localization – details will be posted as they become available.  At the time of release (12/18), the Filter Pack will available in en-us only.

Fully Localized SKU Languages

Language Pack Languages

Arabic

Bulgarian

Brazilian

Croatian

Chinese (SC)

Estonian

Chinese (TC)

Hindi

Czech

Latvian

Danish

Lithuanian

Dutch

Romanian

English

Serbian (Latin)

Finnish

Slovak

French

Slovenian

German

Ukrainian

Greek

 

Hebrew

 

Hungarian