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
1
vote
1 answer
Cannot Open Office 2013 From Code
I have taken over development of a VB .NET 3.5 project. I need to add a reference to Microsoft.Office.Interop.Outlook for Office 2013, but it doesn't appear in my COM Reference list. I have Office 2013 installed. I have tried to find an installer…

Tim
- 2,731
- 9
- 35
- 72
1
vote
4 answers
How to stop an Excel process that I started from a C# .Net application?
I'm running Excel from a C# .Net application and having trouble getting the process to shut down. How can I get the Excel process to shut down correctly from my C# program?

Red Swan
- 15,157
- 43
- 156
- 238
1
vote
1 answer
How to create an Excel application using PIA (2010, version 14.0) and target machine doesn't have MS Office client installed on it
I'm facing one issue, actually I need to create one application in C# using VS2012, .Net framework 4.5 which reads excel and do some operation, but the issue is target machine doesn't have MS Office client installed on it.
And one restriction is I…

Geeky Ninja
- 6,002
- 8
- 41
- 54
1
vote
2 answers
Once you download the PIA for Office 2010, how do you get Visual C# to place it in your Add References .NET menu?
I've never posted so I'm a little nervous, but I've been making a program to compile and send an email after gathering the computer name and IP. I've got an understanding how to do do that just fine, however, I'm trying to use MS Outlook to send the…

Beer_en_thu_si_asT
- 47
- 8
1
vote
0 answers
Unable to add reference to Word 2013 Interop Assembly
I have an existing .Net application that does some Word Interop work. On one machine where I have Word 2010 installed, I am able to reference the Word PIA (Microsoft.Office.Interop.Word) with no problem, compile, run - everything is great. Now, I'm…

MrCodeMnky
- 835
- 1
- 6
- 18
1
vote
1 answer
C# PowerPoint convert file with embedded media
I need to convert a powerpoint file to the latest powerpoint version in my case pptx 2010.
so a ppt file 97-2000 or pptx 2007 should be converted to pptx 2010.
the special ability of 2010 is that all media objects (sound/video) can be included in…

Steven Spyrka
- 678
- 7
- 18
1
vote
2 answers
How to SaveAs in Word 97 using Word version 12 component?
I'm using the Word 2007-component in C#.
I want to save the Word document as a Word97(-2003)-document, because not everyone uses Word 2007/2010.
I thought it is easy by using the following command
document.SaveAs(AFullFileName,…

user1531040
- 2,143
- 6
- 28
- 48
0
votes
1 answer
Insert Data into Excel File generated using Excel PIA's
I have generated excel file using Excel 2007 PIA's and now I want to insert data from database into excel file.I am having SQL Server 2005 database.I also want to format the data in excel file.
Guide me..
Thanks

Stone Cold
- 206
- 2
- 6
- 15
0
votes
3 answers
How to kill the Office Word process which hangs called by Office PIA
I call Office PIA to do something, but always word process hangs and CPU usage is 0%.
How to add a timeout mechanism?
or saying, stop the word process after a expiration time?

Bruce Dou
- 4,673
- 10
- 37
- 56
0
votes
1 answer
Is there a way to uniquely identify a picture attached to an Outlook ContactItem?
It is my understanding that an Outlook contact's "avatar" image is stored as an Attachment object in the Attachments collection (ref).
Now suppose, as an example, that I want to keep my own (separate) contact database updated whenever the user's…

danBhentschel
- 863
- 7
- 24
0
votes
1 answer
How to handle application lifetime in an Outlook PIA implementation
Problem Statement
When Outlook exits, any events registered for via PIA will be lost, and any PIA objects that are currently in memory will be inaccessible.
To Reproduce
Here is a simple console app that illustrates the issue at hand:
static void…

danBhentschel
- 863
- 7
- 24
0
votes
1 answer
MS word 2013 not launching after changing PIA 14 to PIA 15 in VS 2010
I have developed a office application using interop assemblies for Office 2010 in Visual studio 2010.The PIA referred in this is 14.All works fine here.
Now I have changed the office 2010 to 2013,so referred PIA 15 in VS 2010.The project builds…

Reena Sharma
- 25
- 4
0
votes
2 answers
How to tell if Office Primary Interop Assemblies are installed on a system?
I have a program that currently outputs Excel via SpreadsheetML files. I build these using streams. This is very space inefficient for Excel; the files can be 5 to 6 times as large as other Excel binary formats.
I would like to output a binary…

mindless.panda
- 4,014
- 4
- 35
- 57
0
votes
0 answers
Excel customization won't open xlsm file created using Office2007PIA
We distribute an Excel customization as code behind an xlsm document. Previously, our build server had Office 2007 installed and we built the xlsm using the Office 2007 Primary Interop Assemblies (and added them as install prerequisites).
Recently,…

MattDG
- 373
- 3
- 14
0
votes
1 answer
How to use redistributable PIA 2010 to create excel application on machine which doesn't have MS Office client installed
From last couple of days I'm struggling with redistributable PIA 2010. Actually I have created one excel application locally, which uses 2007 PIA (I have also MS Office installed on my machine). This application was working fine, now I have…

Geeky Ninja
- 6,002
- 8
- 41
- 54