Posts Tagged ‘Object model’

Releasing COM objects: Garbage Collector vs. Marshal.RelseaseComObject

Just recently we've got a comment declaring one of our blogs on releasing COM objects "wrong and misleading": the author says Marshal.ReleasingComObject() and related things made him spend "lots of time on writing code that is totally unnecessary" and provides many links supporting the idea that you can use GC.Collect() to get rid of non-released COM objects.... Read the rest of this entry →

New version of Add-in Express sample COM add-in projects

Quick news: we've developed a new version of sample COM add-in projects that we provide in the downloadable archive on the Add-in Express .NET Downloads page... Read the rest of this entry →

How to solve synchronization conflict when modifying Outlook item in ItemAdd event

I see this issue in the Sent Items folder on an Exchange account having Cached Exchange Mode turned on. Reportedly, turning the Cached Mode off solves the issue. The Outlook version used (Outlook 365 in my case) seems to be irrelevant as Google reports a similar conflict to occur in Outlook 2007... Read the rest of this entry →

Range.Replace() problems in all Excel versions

Range.Replace() and supposedly Range.Find() may work incorrectly in a scenario we describe on the Excel for Developers forum. A workaround is: change Range.Value directly... Read the rest of this entry →

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 →

Have any questions? Ask us right now!