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 4325144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:13:40+00:00 2026-05-21T09:13:40+00:00

I developed an office tool and it works perfectly in my computer. But when

  • 0

I developed an office tool and it works perfectly in my computer. But when i port the code to another computer the code doesn’t work. It shows different error message different time. I created an installer and the office.dll, excel.dll and powerpoint.dll was exported with my exe but it doesn’t work. My computer has office 2003 but target computer has both of 2007 and 2003.

Now i suspect maybe in the target computer when my application calls any excel function it is served by GAC of that computer rather than exported dll from my computer.

For this, i am interested to refactor the code: this time i will not use any “using” clause to let the OS what to include, rather than i want to write an assembly class which will load the dll from a specific location ( I believe in this way there will no confusion on which of 2007/2003+from where excel library is included)….

How can i do this ??? Please help.

A sample code I am asking maybe as follows:

using "System.NECESSARY.LIBRARY.TO.IMPORT.DLL"

void main()
{
  [dllImport("office.dll") OTHER_PARTS_GOES_HERE]

  CLASS application= new excel() /* excel class derivess from included office.dll */
}
  • 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-21T09:13:41+00:00Added an answer on May 21, 2026 at 9:13 am

    Update: I have installed Dot-net 4.0 and now the problem is solved 🙂 Because dotnet 4.0 correctly export all the dll i need and on the target machine only those exported dll are used…So no more hack necessary to this topic.

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

Sidebar

Related Questions

I developed an office add in and a setup application, but after I install
I have developed office project in 2003 (Excel template).All features are working fine but
I already developed a large Office application-level add-in and it works like a charm,
I have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed,
I want to buy a brand new notebook for out-of-the-office work. I mainly develop
I developed my site and it works like a charm on my local machine.
I developed a custom file manager for tinymce. But even if adding image to
I developed a module to display submenus as stand alone module, every thing works
I've developed an office VSTO3 application for MS Office 2007. Now I'm in a
Hi i have an application developed on XP with Text ODBC drivers. But when

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.