Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6054105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:06:54+00:00 2026-05-23T08:06:54+00:00

We created an application that uses Office 2007 (Excel 2007) to read in data

  • 0

We created an application that uses Office 2007 (Excel 2007) to read in data from an Excel worksheet. However. I noticed that when I want to deploy the application on a system with Office 2003 installed, it crashes because other PIA’s (and other dll’s) need to be referenced for this version of office.

Do I need to compile different versions of my application to be able to support different versions of Office or is there a more elegant solution for this problem?

I use Visual Studio 2010 (C#) and the .Net 4.0 platform.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:06:54+00:00Added an answer on May 23, 2026 at 8:06 am

    As you’re using .NET 4, you can use “embedded” PIAs (aka “No PIA”). Change the option on the Office reference so that “Embed Interop Types” is True.

    So long as you only use features of Office which are supported on the machine you deploy on, you should be fine.

    It also means that:
    – You don’t need to worry about the PIA itself not being present on the target machine
    – Any methods or properties which are of the VARIANT type in the original COM interface are now represented using dynamic in your code, which can make your life simpler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an application that uses Microsoft.Office.Interop.Excel, in my local and testing environments
I have a C# WPF (.NET 4.0) application that uses Excel interop to read
I have created an application that writes some data to the root folder of
I have created an application that runs in the taskbar. When a user clicks
I've created a web application that I've hosted with IIS 7 on a Windows
I have created a console application that calls a method on a webservice. I
The MFC application that i created is dialog based. Just one dialog thats all.
I have an application that has created a number of custom event log sources
I have a C application that I've created in VS2008. I am creating a
I need to setup an application that watches for files being created in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.