Questions tagged [primary-interop-assembly]

"A primary interop assembly is a unique, vendor-supplied assembly that contains type definitions (as metadata) of types implemented with COM. There can be only one primary interop assembly, which must be signed with a strong name by the publisher of the COM type library. A single primary interop assembly can wrap more than one version of the same type library." -- MSDN

A primary interop assembly is a unique, vendor-supplied assembly that contains type definitions (as metadata) of types implemented with COM. There can be only one primary interop assembly, which must be signed with a strong name by the publisher of the COM type library. A single primary interop assembly can wrap more than one version of the same type library.

as per https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/aax7sdch(v=vs.100)

19 questions
5
votes
3 answers

Outlook 2013 add-in with VS 2010

Sorry for asking such a stupid question, but i googled for about two hours and couldn't find an answer to my question: How can i develop an Outlook 2013 add-in? I have an add-in which was created in C# 2010 and for Outlook 2010. Now i would like to…
AlexS
  • 344
  • 4
  • 14
4
votes
1 answer

how add microsoft.office.interop.word (2003 Version) in VS 2010

I Want Add Office 2003 Primary Interop Assemblies to Visual Studio. so i following this article: http://msdn.microsoft.com/en-us/library/aa159923(v=office.11).aspx but i find just Microsoft.Office.Interop.Word For Version 12.0.0.0 (For Office 2007)…
mehdi
  • 59
  • 4
  • 10
3
votes
1 answer

Unable to Set RTFBody Property of Outlook.TaskItem

I'm trying to set the RTFBody property of a TaskItem (using the Office PIAs). Below is a snippet of what I'm trying to do and it's throwing an exception. Has anyone tried to set the RTFBody before and if so, how are you doing it? Dim oApp As…
clockwiseq
  • 4,189
  • 9
  • 38
  • 61
3
votes
2 answers

Microsoft.Office.Interop.Word namespace overriding my System namespace? C# ASP.net

I am trying to fix this legacy app that was created using Visual Studio 2003, using Microsoft Office Interops version 11, .NET 2.0. I am trying to fix it in Visual Studio Express 2010 to reference Interops version 14, .NET 4.0 -- as noted in my…
2
votes
1 answer

What causes PIA API to differ between Release and Debug build?

I have an ocx from a third party from which a Primary Interop Assembly (PIA) is created when I add a control to my form. The PIA exposes an ActiveX API to my .NET Assembly. The strange thing I have found is that when my solution is set to Debug,…
djv
  • 15,168
  • 7
  • 48
  • 72
1
vote
1 answer

is it possible to insert microsoft word document editor to own application using PIA

How to use Office Primary Interop assembly in own application like Business in the box. Is it possible?
ebattulga
  • 10,774
  • 20
  • 78
  • 116
1
vote
1 answer

Setting a cell's format using Excel 2007 Interop and C#

I'm using the office 2007 interop assemblies to create some excel spreadsheets. There are plenty of questions on here about getting started and MSDN contains heaps of articles, like this one. The API is funky, and sometimes a bit confusing. When I…
CVertex
  • 17,997
  • 28
  • 94
  • 124
1
vote
0 answers

Installing version 11 PIA on a Visual Studio 2008 / Office 2007 system?

The client has development systems with Office 2007 (version 12) and Visual Studio 2008. However, the software needs to run on Office 2003 (version 11) systems too. How do I install the correct Primary Interop Assemblies on the development system? I…
1
vote
1 answer

Why is my UserProperties collection empty?

I'm using the Outlook 2003 PIA and VS 2005 to access items in a public folder. The item.UserProperties collection always comes back empty, despite the items having several user defined fields. If I add a property in code using UserProperties.Add,…
Matt
  • 1,370
  • 2
  • 16
  • 40
0
votes
1 answer

ADODB interop issue

We have project PrjDb.dll in vb 6.0 that has a reference to ado 2.5. The project is built on Machine A. Now when we generate an interop for PrjDb.dll on another machine B, we end up with a new ADODB.dll with ver 2.5 in version field instead of…
Paragon
0
votes
0 answers

Error Message: From Assembly Cannot Embed Interop Types from Assembly

Im using .NET Framework 4.8 and Im using the ClosedXML Library,but my programm is an class Library type of programm so that the dll of the programm will land in an different folder where all other additional dll like the closedXML dll are not…
0
votes
0 answers

RegAsm adding PrimaryInteropAssembly to wrong registry key

I am trying to regasm ADODB.dll in a docker container however whenever I run the command, the PrimaryInteropAssemblyName gets added to the "wrong" registry key (I say the "wrong" key but I am currently trying to learn how this witchcraft actually…
Jonathan Smith
  • 2,390
  • 1
  • 34
  • 60
0
votes
1 answer

Is there any performance benefit to using .net 4's no-PIA feature?

I understand that there's a deployment benefit to no-PIA, but is there a performance benefit to having the types embedded in the assembly?
Suraj
  • 35,905
  • 47
  • 139
  • 250
0
votes
1 answer

Outlook add-in works prior to Outlook 2016

I've checked other Stackoverflow questions, but no help there. Running VS2015 C# project for Outlook Add-in. The Add-in appears for Outlook 2010 and prior versions. On Outlook 2016 it just doesn't show up, no errors. It is a COM Add-in, there is no…
0
votes
1 answer

C# Replacing Text In String Changes Paragraph Formatting in Word - Interop Assemblies

I have a code where I am iterating through every paragraph present in a word document with the use of the Primary Interop Assemblies. What I am essentially doing is extract all the text from each paragraph into a string. Then I searching that string…
Dylan
  • 147
  • 1
  • 1
  • 11
1
2