Posts Tagged ‘Object model’

Exception from HRESULT 0x800A01A8 in PowerPoint solutions

On an example of a simple scenario, this article demonstrates what causes 0x800A01A8 and how to avoid it in C#, VB.NET, VBA, Delphi. Exception from HRESULT: 0x800A01A8 is also known as OLE error 800A01A8 and also known as Object Required.... Read the rest of this entry →

Outlook Object Model: 4 things developers might not know

Today, I will cover 4 topics of Outlook development tasks that are not commonly known or mainstream. You can argue about how well known each task is but you will lose. These tasks are not commonly known because you don't always need them. They are beyond the basics. But, if you master them, you can look upon other Outlook developer with a snooty little smirk... Read the rest of this entry →

How To: Set a custom icon for an Outlook folder in the Navigation Pane

Today I want to show you one of the new features Outlook 2010 brought to programmers. Now Outlook allows setting custom icons the Navigation pane folders. The Outlook Object Model provides a special method for this task – SetCustomIcon. So, let's start our journey into the Outlook programming world ... Read the rest of this entry →

How To: Create a new distribution list item in Outlook

Sometimes Outlook users need to send their e-mails to the same recipients. The Outlook Object Model provides the DistListItem class exactly for this task. The distribution list represents a group of contacts that are related in some way... Read the rest of this entry →

How To: Remove a Personal Folders file from the current Outlook profile

In my previous post we discussed how to add a new personal folders store to the Outlook profile. Now I would like to reveal the opposite action – how to remove a personal folders store... Read the rest of this entry →

How To: Create a new Outlook Personal Folders store and add it to the current profile

Sometimes developers need to add an additional store in Outlook for archiving e-mails, making backup copies of email conversations etc. The AddStore method of the Namespace class of the Outlook Object Model provides the required functionality... Read the rest of this entry →

How To: Use Restrict method to retrieve Outlook Task items

Today I would like to show you how to filter task items using the Restrict method of the Items class which the Outlook Object Model provides for developers... Read the rest of this entry →

How To: Use Outlook Find and FindNext methods to retrieve Task items

In my previous articles I described how to use Find and FindNext methods to retrieve Outlook mail items, contact and calendar items. Now I am going to show you how to apply the Find and FindNext methods for Outlook task items... Read the rest of this entry →

How to intercept clicking an Office Ribbon control or command bar button

There are three ways to invoke a command of an Office application: click a built-in Ribbon button (2007-2010); click a built-in CommandBar button (Office 2000-2003 and some Office 2007 applications) and press a keyboard shortcut... Read the rest of this entry →

How To: Create a new recurrent Task item in Outlook

There are two item types that can be recurrent in Outlook: appointment and task items. In one of my earlier posts described the first one. Now I am going to tell you the story about task items... Read the rest of this entry →

Excel shapes events: getting notified about user actions

The Excel object model doesn't have any events purposed for manipulations with shapes. In this blog I demonstrate an approach to solving this problem... Read the rest of this entry →

How To: Create a new Task item in Outlook

In my previous posts I have described how to create a new e-mail message, contact and appointment items. Today I am going to cover task items... Read the rest of this entry →

Using Word Dialogs programmatically: C# sample

This blog is about a sample add-in project (with source code) demonstrating how to use Word dialogs programmatically. With this add-in you can check if a given dialog is suitable for your task or get version-specific information about that dialog and its properties... Read the rest of this entry →

How to navigate through the Microsoft Office Command Bar system

There are 4 instances of the command bar button "Save" (Id=3) in Excel. Two of them are best known: a button on the Standard commandbar and an item in the File menu. The other two instances are buried in the command bar system... Read the rest of this entry →

HowTo: get the actual type name behind System.__ComObject with Visual C# or VB.NET

Developers accessing Application.Selection and Application.ActiveSheet in Excel or Explorer.Selection.Item(i), Folder.Items(j), Inspector.CurrentItem in Outlook do know the notorious "System.__ComObject" string. It indicates that the actual type of the COM object is unknown... Read the rest of this entry →

How to handle Outlook item’s Reply event: replying from a context-menu

Let's consider the case then the user replies to an Outlook e-mail from the context menu. First off, you can reply to one item only; that item is selected or right-clicked in an explorer window or is opened in an inspector window.... Read the rest of this entry →

Have any questions? Ask us right now!