Archiv für Juli 2010

Articles

Outlook 2010 – Set out of Office Message in c#

In .Net,Office on Juli 30, 2010 von murratore

Here is a source code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;

namespace OutlookAddIn2
{
    public partial class ThisAddIn
    {
        const string DefaultOOFMessageInternal = "Vielen Dank für Ihre Nachricht. Ich antworte Ihnen nach meiner Rückkehr so rasch wie möglich. Oder rufen Sie uns an, damit sich meine Stellvertretung um Sie kümmern kann.";



        Outlook.Application app;
        Outlook.NameSpace ns;

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            app = Globals.ThisAddIn.Application;
            ns = app.GetNamespace("MAPI");

            bool OOFState;

            Outlook.MAPIFolder Inbox = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
            Outlook.PropertyAccessor pa = Inbox.PropertyAccessor;

            foreach (Outlook.Store store in ns.Stores)
            {
                if (store.ExchangeStoreType == Outlook.OlExchangeStoreType.olPrimaryExchangeMailbox)
                {
                    OOFState = (bool)store.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x661D000B");

                }

            }

            Outlook.StorageItem InternalOOFMessage;
            InternalOOFMessage = Inbox.GetStorage("IPM.Note.Rules.OofTemplate.Microsoft", Outlook.OlStorageIdentifierType.olIdentifyByMessageClass);

            InternalOOFMessage.Body = DefaultOOFMessageInternal;
            InternalOOFMessage.Save();

            Outlook.StorageItem ExternalOOFMessage;
            ExternalOOFMessage = Inbox.GetStorage("IPM.Note.Rules.ExternalOofTemplate.Microsoft", Outlook.OlStorageIdentifierType.olIdentifyByMessageClass);

            ExternalOOFMessage.Body = DefaultOOFMessageInternal;
            ExternalOOFMessage.Save();


           
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
       
        #endregion
    }
}
</< pre>

It is also possible to activate the OOF with this sourcecode.

Articles

links for 2010-07-21

In del.icio.us on Juli 22, 2010 von murratore

Articles

Daily Blog Post 07/18/2010

In Uncategorized on Juli 18, 2010 von murratore

  • Sie können sich Ihre Bestellungen an meine deutsche Adresse liefern lassen, ich wohne 5 Gehminuten von der Grenze entfernt, nähe Bahnhof, bequemer geht es nicht.

    Eine Abholung kann man sehr gut mit einem Einkaufsbummel in der schönen Innenstadt von Konstanz verbinden, alle interessanten Geschäfte befinden sich in meiner unmittelbaren Nähe.

    tags: shop lieferadresse service deutschland konstanz

Posted from Diigo. The rest of my favorite links are here.

Articles

Office 2010 – Deploying your VSTO add-ins to All Users

In Office,Visual Studio on Juli 16, 2010 von murratore

Beste und einzige funktionierende Anleitung welche ich gefunden habe zum Deployen von Office 2010 Addins. Mit Clickonce gehts viel einfacher aber so hat mans halt nicht im Griff wie mit einem MSI.

http://blogs.msdn.com/b/vsto/archive/2010/03/08/deploying-your-vsto-add-ins-to-all-users-saurabh-bhatia.aspx

Articles

Daily Blog Post 07/12/2010

In Uncategorized on Juli 12, 2010 von murratore

Posted from Diigo. The rest of my favorite links are here.

Articles

links for 2010-07-06

In del.icio.us on Juli 7, 2010 von murratore

Articles

Daily Blog Post 07/06/2010

In Uncategorized on Juli 6, 2010 von murratore

Posted from Diigo. The rest of my favorite links are here.

Follow

Bekomme jeden neuen Artikel in deinen Posteingang.