Posts Tagged ‘PIAs’

From VB6 to .NET. At last…

In one of my previous lives, I was a VBA and VB6 developer: ReDim, InStr, Msgbox, If Not Obj Is Nothing and other ugly things were part of that nice life. Now I live another life and have both VB.NET and C# experience gradually shifting to C#. If you are a late wayfarer on the […]... Read the rest of this entry →

.Net Framework 4, NoPIA and Add-in Express 2010

Let’s take a break from the Northwind Traders application for a while and talk about a new feature available in .Net Framework 4 : NoPIA or Type Embedding. As you all know when we developed Office Add-ins or applications that integrated with the Office suite of products we have to include a reference to the Office PIAs or Primary Interop Assemblies ... Read the rest of this entry →

How to show an Outlook.MailItem in PrintPreview mode programmatically

The Outlook object model doesn't allow showing the PrintPreview dialog. To show it in all Outlook versions, you need to call the Execute method of a corresponding command bar button. Also, in Outlook 2007 and 2010, you can invoke the corresponding Ribbon command using the ExecuteMso method of the Office.CommandBars class. Let's see how to do this... Read the rest of this entry →

Supporting several Office versions in an add-in. Interop assemblies and late binding.

When accessing a COM type library in .NET via early binding you need to use a corresponding interop. An interop for an Office application is a .NET assembly providing meta-information about objects, properties, methods, and parameters available in the type library (=object model) of the Office application. Microsoft provides interops for all Office applications starting from Office version 2002... Read the rest of this entry →

Microsoft Office PIAs (Primary Interop Assemblies) and Add-in Express .NET

How Add-in Express .NET integrates MS Office PIAs into add-in solutions. Strategy and tactics of using MS Office PIAs. And about benefits of late binding.... Read the rest of this entry →

A bit about Microsoft Office PIA

Office Primary Interop Assemblies. The official opinion of Microsoft. Is it possible to create an add-in with PIAs for all Office versions?... Read the rest of this entry →

Have any questions? Ask us right now!