Browse by Tags

All Tags » DevMsgTeam » Code Snippets   (RSS)
Showing page 1 of 7 (65 total posts)
  • Playing with Journal Items & Outlook Object Model # 2

    After created couple of journal items in my test lab, i thought this time i want to play around with the Journal items. Also i want to try the following programmatically: 1) iterate all the available journal items 2) Restrict the values with a (if the Lastmodificationtime > ‘23/9/2009’) specific time frame For this i used Items( index). Here index is the index number of a journal entry or a value used to match the default property of a journal entry, to return a single JournalItem object from
    Posted to Le Café Central de DeVa (Weblog) by deva on September 23, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, Restrict, Macro, Journal, Journal Programming
  • Playing with Journal Items & Outlook Object Model # 1

    I want to share my research (that i tried to play around with Journal items) with respect to Outlook Object Model API to you. How to create the new Journal Item programmatically using Outlook Object Model? Now, we can try how we can create a new Journal Item. Code snippet: Creating a new Journal Item with Outlook Object Model & VBA 'Creates a new journal item Dim objMail As Outlook.JournalItem 'Create journal mail item Set objMail = Application.CreateItem(olJournalItem) With objMail .Body = "First
    Posted to Le Café Central de DeVa (Weblog) by deva on September 23, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, Application, Journal, Journal Programming
  • Outlook Object Model: How to identify existing categories and updating/adding new categories in Outlook 2007 using programmatically?

    With continuation of my previous–related blog post , I got this task to find out the way how to identify the existing categories and updating/adding new categories in Outlook 2007 using Outlook Object Model programmatically. I tried the following to find whether the category exists or not: Public Function CategoryExists(categoryName As String ) As Boolean   Dim category As Outlook.category   Set category = Application.Session.categories(categoryName)   If Not (category Is Nothing )
    Posted to Le Café Central de DeVa (Weblog) by deva on July 22, 2009
    Filed under: Code Snippets, How to, Outlook Programming, Outlook Object Model (OOM), DevMSGTeam, development, color, Category, Outlook, Outlook Categories, shortcutkey
  • WebDAV : How to retrieve list of folders from Exchange Server using Search method (WebDAV) programmatically ?

    using System; using System.Net; using System.IO; using System.Text; using System.Xml;   namespace SampleCode { class GetFolders { static void Main( string [] args) { // Variables. System.Net.HttpWebRequest Request; System.Net.WebResponse Response; System.Net.CredentialCache MyCredentialCache; string strRootURI = "http://server/exchange/username/Inbox/" ; // Provide the valid URI string strUserName = "UserName" ; string strPassword = "Password" ; string strDomain
    Posted to Le Café Central de DeVa (Weblog) by deva on July 22, 2009
    Filed under: Exchange Server 2007, Exchange Server 2003, Code Snippets, WebDAV, How to, DevMSGTeam, Programming, development, search, webresponse, CredentialCache, webrequest, credentials, Exchange Programming, inbox
  • Outlook Object Model : Creating Outlook Categories programmatically and assign colors, shortcut keys to that

    In this blogpost, we will try to create the Outlook Categories programmatically using Outlook Object Model API. Also we will assign the relevant colors and shortcuts to that. Whenever we try with Outlook Object Model, it’s relatively simple. '[Code snippet to create Categories] Private Sub CreateCategory()   Dim objNameSpace As NameSpace Dim objCategory As Category ' Obtain a NameSpace object reference Set objNameSpace = Application.GetNamespace( "MAPI" ) 'Add the Category, set its
    Posted to Le Café Central de DeVa (Weblog) by deva on June 23, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBScript, VBA, DevMSGTeam, development, color, Category, samples, Outlook Categories, shortcutkey
  • Code snippet using OOM : How to modify in-appropriate CSS/HTML tags available in the Outlook e-mail’s HTMLBody ?

    Hi, Please find the following code snippet shows how we can modify/edit/add more or in-appropriate CSS/HTML tags available in the Outlook e-mail’s HTMLBody using Outlook Object Model: '[Code Snippet - Outlook Object Model '[How to modify Outlook e-mail's inappropriate CSS/HTML tags from its HTML Body ... 'Definition Dim str As String Dim str1 As String Dim omailitem As Outlook.MailItem Dim oattach As Outlook.Attachment Dim ofolder As Outlook.Folder   'str1 stands for CSS/HTML tag that needs
    Posted to Le Café Central de DeVa (Weblog) by deva on May 11, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, HTMLBodyPart, HTMLBody, tag
  • OOM : How to retrieve Outlook attachments ( Reference, Value, Embedded and OLE) using VBA?

    Please find the following code snippet for retrieving various Outlook attachments  - Reference, Value, Embedded and OLE using Outlook Object Model (OOM) & VBA: 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.MailItem Dim oattach As Outlook.Attachment Dim ofolder As Outlook.Folder   Set ofolder = Application.Session.PickFolder Debug.Print "Total Items available in Folder : " & ofolder.Items.Count  
    Posted to Le Café Central de DeVa (Weblog) by deva on April 29, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, OLE, Attachment, Outlook
  • Monitoring event sink # 30 – How to enumerate Store Event Sink registered in a inbox ?

    We can enumerate the store event sink as given below: 'This command helps us to enumerate the list of registered store event sink's with the 'administrator user's inbox available in contoso.com C:\> cscript regevent.vbs enum "file://./backofficestorage/contoso.com/mbx/administrator/inbox" all .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin:
    Posted to Le Café Central de DeVa (Weblog) by deva on April 21, 2009
    Filed under: Monitoring Event Sink, Exchange Server 2003, Code Snippets, Store Sink, regevent.vbs, DevMSGTeam, Exchange Server
  • Outlook Object Model : Why i can’t able to assign value for MAPIFolder.WebViewURL ?

    One of my customer had created an Outlook Add-in using VSTO & Outlook Object Model (OOM). As per the business logic, he need to implement the WebViewURL in it. The MAPIFolder.WebViewURL works fine and take’s us to set value to it most of the times, but it doesn’t function as expected in some time; the strange thing is it’s not throwing any error or exception when we execute the code. //[Code Snippet : C# , VSTO, Outlook Object Model (OOM)] ... //Provide the non-default store path String pstPath
    Posted to Le Café Central de DeVa (Weblog) by deva on February 26, 2009
    Filed under: VSTO, Store, Code Snippets, Outlook 2007, MAPI, E-Book, design, Outlook Add-in, KB, Outlook Programming, Outlook Object Model (OOM), Outlook UI, pane, pst, DevMSGTeam, Outlook UI Issues, development, Folder, Interop, Outlook View, View, WebViewURL, URL
  • How to get Explorer & Inspector selected mail item using Outlook Object Model (OOM) & .Net?

    In this article, we are going to see how we can get Explorer & Inspector selected mail item using Outlook Object Model (OOM) & .Net and process it. '[Code Snippet : VB.Net, .Net Framework 2.0/3.5, Outlook Object Model (OOM)] ... 'Declaration part Dim ThisOutlookSession As Outlook.Application = New Outlook.Application Dim NS As Outlook. NameSpace = ThisOutlookSession.Session Dim objsel As Object 'Check it's Inspector or Explorer Window If TypeName(ThisOutlookSession.ActiveWindow) = "Inspector"
    Posted to Le Café Central de DeVa (Weblog) by deva on February 18, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, design, Outlook Programming, Outlook Object Model (OOM), messages, DevMSGTeam, Programming, .Net, development, Outlook, ActiveExplorer
1 2 3 4 5 Next > ... Last »

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker