‘HowTo samples’ category archive
Andrei Smolin | March 24th, 2010
You know, a pessimist differs from an optimist by his attitude to a glass: the former thinks the glass is half empty, while the latter considers it's half full. When I was contemplating on the circumstances that made me write this post, I worked out another definition...
Read the rest of this entry →
.NET, C#, COM add-ins, Excel, Office, RTD servers, XLL |
2 Comments
Dmitry Kostochko | November 6th, 2009
In the previous sample, I showed how to get the PR_ATTACH_SIZE Extended MAPI property that returns the size of an Attachment object. To be more precise, it returns the size of the attached file and the size of some internal info. In most cases that makeweight does not matter at all...
Read the rest of this entry →
.NET, C#, COM add-ins, MAPI, Object model, Outlook, VB.NET, Visual Studio |
4 Comments
Dmitry Kostochko | August 21st, 2009
In one of the previous posts, we examined the possibilities of retrieving properties from Outlook MailItem when dragging this item onto your custom form. Here is that post: How to get properties of an Outlook email item drag-and-dropped onto a .NET form. But what if the Advanced Region is in a Minimized state? In this case the form is hidden and none of the standard events will work...
Read the rest of this entry →
.NET, C#, COM add-ins, Outlook, VB.NET, Visual Studio, Word |
No Comments
Dmitry Kostochko | June 26th, 2009
In general, you can have IE add-ons interact with standalone applications by using Windows messages and the Shared (static in C#) GetModulesByTypeName method of the AddinExpress.IE.ADXIEModule class. There is just one limitation: both processes (IE with your add-on and standalone application) must be running in the same Integrity Level...
Read the rest of this entry →
.NET, C#, IE add-ons, VB.NET, Visual Studio |
No Comments
Dmitry Kostochko | June 19th, 2009
Nearly every software has some settings. An Internet Explorer plug-in is not an exception. The IE plug-in settings can be stored either in a file or in a registry branch, all is simple and transparent about this. But how to ensure the settings synchronization for all active instances of the IE plug-in in all running Internet Explorer processes?...
Read the rest of this entry →
.NET, C#, IE add-ons, VB.NET, Visual Studio |
32 Comments
Dmitry Kostochko | June 12th, 2009
The Protected Mode feature was introduced in Internet Explorer 7 and continues to exist in Internet Explorer 8. Nearly at the same time when the Protected Mode feature appeared Microsoft introduced Protected Mode API for developers to use this feature. All API functions are implemented in the Add-in Express for Internet Explorer and .net product and today we are going to look into their capabilities...
Read the rest of this entry →
.NET, C#, IE add-ons, VB.NET, Visual Studio |
No Comments
Dmitry Kostochko | May 8th, 2009
It would be true to say "get" rather than "convert". There could be only one right way – to use Extended MAPI. Another method is described in the MSDN article: How to retrieve alternate e-mail addresses by using CDO, but we will not see into this approach, because CDO is optional in Outlook 2003 and is absent completely in Outlook 2007...
Read the rest of this entry →
.NET, C#, COM add-ins, MAPI, Object model, Outlook, VB.NET, Visual Studio |
49 Comments
Dmitry Kostochko | May 1st, 2009
In Office 2007 there are 3 available color schemes – Black, Blue and Silver. The background of controls in command bars and ribbon tabs is changed by Office automatically. Do you want to try changing the background of your Outlook forms and Excel task panes when the MS Office color scheme is changed?...
Read the rest of this entry →
.NET, C#, COM add-ins, Excel, Object model, Outlook, Outlook regions, task panes, VB.NET, Visual Studio |
No Comments
Dmitry Kostochko | April 24th, 2009
Add-in Express 2008 allows placing several forms into one Outlook region or task pane. In addition, Add-in Express 2009 enables the end-user to drag and drop custom forms to wherever they want to (naturally, with the developer's permission). Do you need to know where your form is now and in what state? Of course, you do...
Read the rest of this entry →
.NET, C#, COM add-ins, Outlook, Outlook regions, task panes, VB.NET, Visual Studio |
No Comments
Dmitry Kostochko | April 17th, 2009
It is generally known that the Microsoft Office Object Model is not thread safe and accessing some object, property or method not from the main thread may sometimes result in a host application crash. Of course, nothing prevents you from using threads inside the add-in itself, threads that don't need the Office Object Model...
Read the rest of this entry →
.NET, C#, COM add-ins, Object model, Office, Outlook, VB.NET, Visual Studio |
4 Comments