Browse by Tags

Tagged Content List
  • Blog Post: Filter Outlook Items by Date with LINQ to DASL

    I received an email over the weekend asking why the following LINQ to DASL query threw an exception: Outlook. Folder folder = (Outlook. Folder )Application.Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderCalendar); var appointments = from item in folder.Items.AsQueryable<...
  • Blog Post: LINQ to DASL Walkthrough

    Now that the Office Interop API Extensions have been released , I thought I would post a complete walkthrough of a simple LINQ to DASL application. Let's start with my fictitious Outlook calendar: This calendar shows that I have four appointments today. The appointments have been categorized as...
  • Blog Post: Parameterized Properties and the Office Interop API Extensions

    One of the disadvantages of C# compared with VB is its lack of support for parameterized properties. Instead, parameterized properties in C# are exposed as normal method calls prefixed with "get_" and "set_". This is particularly apparent when working with the Office object model as it exposes many such...
  • Blog Post: Office Interop API Extensions Now Available!

    As announced in Andrew Whitechapel's post , version 1.0 of the VSTO Power Tools have been released! One of those tools is the Office Interop API Extensions, a set of libraries which extend the Office object model to simplify development on the Office platform. This past week I've blogged about the capabilities...
  • Blog Post: Extending LINQ to DASL with Custom DASL Properties

    In an earlier post I discussed LINQ to DASL, part of the Office Interop API Extensions, which is one of the forthcoming VSTO Power Tools. LINQ to DASL allows you to write LINQ expressions against Outlook item collections. I also mentioned that many known DASL properties were not mapped to their Outlook...
  • Blog Post: Using LINQ with the Office Object Model

    In my last post I talked about LINQ to DASL, a LINQ provider that converts query expressions into their DASL equivalent in order to efficiently filter item collections in Outlook. But LINQ to DASL solves only a very specific problem for one particular application. The Office object model has many types...
  • Blog Post: Query your Outlook Inbox with LINQ to DASL

    Quick, tell me what the following code does: Outlook. Folder folder = (Outlook. Folder ) this .Application.Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderInbox); string subject = "VSTO" ; string filter = @"@SQL=(""urn:schemas:httpmail:subject"" LIKE '%" + subject.Replace( "'...
  • Blog Post: Banish Missing.Value with the Office Interop API Extensions

    I like VSTO. I like C#. What I don't like is having to write VSTO code in C# like: object fileName = "Test.docx" ; object missing = System.Reflection. Missing .Value; doc.SaveAs( ref fileName, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing...
  • Blog Post: VSTO at Portland Code Camp v3.0

    Yesterday I gave a presentation on VSTO at the third annual Portland Code Camp . I demonstrated an Outlook 2007 add-in that used Outlook Form Regions, WCF, and WPF to integrate Amazon.com Wish Lists with contact items. As my first public speaking event since joining Microsoft last November, I thought...
Page 1 of 1 (9 items)