Microsoft Office Primary Interop Assemblies (PIA) allow code from a Microsoft Office project to interact with an MS Office application's COM-based object model.
Questions tagged [office-pia]
57 questions
22
votes
5 answers
How to disable popups when opening a file using Microsoft.Office.Interop
Such as read-only confirm, other alerts.
What to do with these popups? Or ignore them?

Bruce Dou
- 4,673
- 10
- 37
- 56
21
votes
5 answers
RCW & reference counting when using COM interop in C#
I have an application that uses Office interop assemblies. I am aware about the "Runtime Callable Wrapper (RCW)" managed by the runtime. But I am not very sure how the reference count gets incremented. MSDN says,
RCW keeps just one reference to…

Navaneeth K N
- 15,295
- 38
- 126
- 184
16
votes
2 answers
Why doesn't the office PIA install correctly to the GAC?
I am currently working on a c# project, where I need to access Outlook. The development is being done on two different machines, one of which has office installed, and one of which doesn't. I previously asked how to compile my project against the…

Boris
- 5,094
- 4
- 45
- 71
12
votes
7 answers
Converting PPT to SVG using Microsoft Office 2010 PIA
I'm trying to convert a powerpoint presentation to seperate svg files (1 for each slide), Is it possible to do so by using the Microsoft Office 2010 PIA ?
If so, then is there any tutorial on using Microsoft Office 2010 PIA in Java ?

fogy
- 157
- 1
- 3
- 6
6
votes
1 answer
MS Office PIAs "backward compatibility"
I've successfully completed a Windows Forms application with MS Word integration - the application writes to mergefields in a Word Template. I did the template using MS Word 2007, but saved it in compatible mode as a 97-2003 '.dot' file. Due to…

Shalan
- 943
- 4
- 20
- 43
6
votes
2 answers
Deploying PIA to mixed versions of Office
Hello I have been fighting some complexities with understanding deployment of Primary Interop Assemblies (PIA) for MS Office. I have Visual Studio Com Add-IN built in VS 2008 on pure com technology (not VSTO see bottom of this for more on that),…

Bender
- 61
- 2
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
0 answers
VS 2005 against Office XP PIA on system with Office 2003/2007?
On my development system, I am running Office 2007, and previously had Office 2003 installed, and thus have the Microsoft Office 11.0 and 12.0 Object Models available. Our production environment is in the process of being upgraded to Office 2007,…
user74380
4
votes
3 answers
Can you install Office 2007 PIA's without office
First of all, my question is not quite the same as
Is Office 2007 PIA deployment possible without Office 2007?
I am not looking to use the PIA's yet. The IT engineers would ideally like to deploy the 2007 PIA's to everyone's computers before they…

Jacob Adams
- 3,944
- 3
- 26
- 42
4
votes
1 answer
how can I manually install the Office 2007 PIAs on a computer with no Office installed?
I have seen a few other questions regarding the Office 2007 PIAs, in particular:
Can you install Office 2007 PIA's without office? (3)
Is Office 2007 PIA deployment possible without Office 2007?
This question is different.
In my experience,…

Cheeso
- 189,189
- 101
- 473
- 713
3
votes
4 answers
MS OFFICE C#: Primary Interop Assemblies
Any one know of a way to install MS Office Primary Interop Assemblies without installing having to install office itself?

rd42
- 3,584
- 15
- 56
- 68
3
votes
4 answers
What can you do with Excel vba you cannot with c#
I ve heard things like you cannot manipulate tables in C# but can through VBA.
Does any one know what can be done via VBA which cannot be done via C# PIA?

Jack Kada
- 24,474
- 29
- 82
- 106
2
votes
1 answer
Create SmartArt from TreeView in C#
Is there a way to create a SmartArt Hierarchy chart in Word from a treeview that the user creates in a C# Windows Forms application?
Thanks for any help.

ALUM22
- 101
- 1
- 10
2
votes
2 answers
Disable Macros Automatically Microsoft Word Interop
I have a addin in word that on startup tries to use some macros (I presume that's what it's trying to do anyway), and pops up a window that looks similar to
I think the issue is that the addin has an expired digital signature, however, I require…

Dan
- 7,286
- 6
- 49
- 114
2
votes
2 answers
Microsoft Office PIA and how to reference and build correctly from WebApp
I am currently trying to build on TeamCity, which uses Microsoft.Office.Interop dll. This will build and work fine locally as I have Office installed, however when trying to build it on TeamCity it fails as it has no reference.
I can't install the…

Dean
- 5,896
- 12
- 58
- 95