Questions tagged [office-pia]

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.

57 questions
0
votes
1 answer

Multithreading with Word automation

I am working with MS Word 2007 in VB.NET using the PIAs. Specifically I am doing some processing on multiple Word.Document objects in memory which are part of the same Word.Application object. Can I process each Word.Document in a separate thread or…
Jacob
  • 453
  • 5
  • 17
0
votes
2 answers

How Print MS Office document without office installed

My C# Windows application needs to print office documents silently(without popup dialog or open up applications such as Word, Excel ). So I'm trying to find a way to print office documents without office (Otherwise user needs to buy office package…
Nayana Adassuriya
  • 23,596
  • 30
  • 104
  • 147
0
votes
1 answer

Microsoft.Office.Interop error even after installing PIAs

We have a large project which builds fine on several machines. I am in the process of installing a development system on a new machine and have a problem building because the Microsoft.Office.Interop namespace is missing. I have Office 2010…
0
votes
1 answer

Will Office 2010 PIA's work with Office 365 (2013)?

We're trying to do some simple integration with Outlook such as synchronizing Contacts, Tasks, and Calendar with our C# .NET 4.5 project. Can we use the Office PIA's in Visual Studio 2012 to interface with Office 2010 and 2013? If not, do you have…
Neal
  • 9,487
  • 15
  • 58
  • 101
0
votes
1 answer

.NET application with Office PIA and SecurityException

I have a c# application that uses the Office PIAs to enable the application to export data to an Excel file. This works great on my development machine and other desktop machines. When I run the application on a Terminal Server (which has Office…
Aaron
  • 367
  • 1
  • 7
  • 16
0
votes
1 answer

.net Interrop Outlook ItemChangeEvent fires several times

I'm using interrop to handle changing events in outlook so when a calandar item is chaged i can display a message.The problem is that it fire the event 3 times :s. here is the code : Private Sub mCalendarItems_ItemChangeEvent(ByVal Item As…
Bouam
  • 484
  • 2
  • 10
0
votes
1 answer

Word 2007/2010: Accessing Microsoft.Office.Interop.Word.Document.SaveFormat property crashes Word

We are trying to access the SaveFormat property of a Microsoft.Office.Interop.Word.Document instance (I guess it's technically a DocumentClass instance since Document is an interface). Upon attempting to read SaveFormat, Word crashes rather…
System.Cats.Lol
  • 1,620
  • 1
  • 26
  • 47
0
votes
1 answer

Excel PIA returning null for a cell with a number in

I have a problem in that using the following code var num = sheet.Cells[row, col].Value; or var num = sheet.Cells[row, col].Value2; will not return a value if the cell contains only a number. Am I missing something silly here? I also ought to…
ridecar2
  • 1,968
  • 16
  • 34
0
votes
1 answer

PIA's Installed but still receiving interop error

I am trying to use the Microsoft.Office.Interop.xxxxxxx namespace but Visual Studio 2010 is not providing an option for "interop". I have the PIA's installed for office12 and office14, I have included them in the 'References' in the Solution…
Chris
  • 934
  • 1
  • 17
  • 38
0
votes
1 answer

c#.net 4.0 - no pia - is this all I need?

Reference the Microsoft.Office.Interop.Excel and set Embed Interop Type to true? Will doing so ensure my app is backward compatible? (As long as I use safe methods that work on all versions.) Or do I have to use something like late binding and all…
TPR
  • 2,567
  • 10
  • 41
  • 65
-1
votes
1 answer

Office 2010 64-bit PIAs

I have a Windows 8 machine with VS 2010, VS 2012 and Office 2013 64-bit installed. We have a large VS 2010, Excel 2010 add-in template project that we are able to run and debug fine on a machine with Office 2010/2013 32-bit. However on this machine…
r_honey
  • 883
  • 4
  • 15
  • 31
-1
votes
1 answer

is there a way to verify Excel PIA install

How do I know if excel PIA is installed on a system ? One of our users who is trying to install our excel addin and getting error message "A required component for interacting with Excel 2007 is not available". This is happening because the Launch…
ravi
  • 1,707
  • 4
  • 29
  • 44
1 2 3
4