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

  • SEARCH
  • Home
  • 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 6795513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:21:17+00:00 2026-05-26T18:21:17+00:00

I want to support all Office suites in one application using Office Interop. I

  • 0

I want to support all Office suites in one application using Office Interop.

I was able to do this in Visual Basic by making use of CreateObject()?
The problem was that I wasn’t able to see the functions up-front and had to jump around between docs to get it done (Due to Object being used).

If I use a factory pattern and have an implementation for each version of Office, would it work?

Example:

Factory->ABaseOffice GetImplementation(string office_version)

Returns an instance of ABaseOffice which is implemented by Office2000 and OfficeXP.

This way if a new Office version comes out I just have to write the speciffic code for it and not be bothered about the previous versions or depending on 3rd party software.

I don’t want to follow the COM/Interop – Supporting Multiple Versions route.

  • 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-26T18:21:18+00:00Added an answer on May 26, 2026 at 6:21 pm

    yes – in theory this works… the problem is that you definitely can’t reference different versions of the Interop-DLLs in the same project… so you will still have to use the late binding approach for the implementations of the ABaseOffice interface

    UPDATE – as per comments:

    In theory the described option (see http://blogs.msdn.com/b/ansonh/archive/2006/09/27/774692.aspx) would allow for adding those references… several reasons not to do so:

    • these are much more than 2 versions of Interop DLL
    • the DLL name ist the same IIRC (which poses a problem not addressed in that article!)
    • the result would be really hard to understand/maintain/debug
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing one iphone app, and i want to support all orientations. The
I'm trying to use iAds in my app but I want to support all
in my application i want to support both mass memory and memory card. but
I want to add scripting support for an Objective-C project using the objc runtime.
I want to be able to support multiple versions of Java ME without having
I want to run a Delphi application(With forms vcl, forms, etc) using another application
I am developing an iPhone application in which I want to support Air Play.
I have a photo website and i want to support tags as my original
Let's say you have a domain entity User and you want to support the
So, lets say I'm writing a web server and I want to support very

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.