Solved

Changing Word references in VB.net project

Posted on 2013-06-20
5
698 Views
Last Modified: 2013-06-21
Hello,

I have created an application which generates a word document.

In my project references I have Microsoft Word 14.0 Object Library.

The app works fine on my development machine, which has Office 2013 installed.  If I transfer the app to system with Office 2010 on I get the error "Could not load file or assembly Microsoft.Office.Interop.Word, Version=15.0.0.0.

Please could you tell me the adjustments I need to make the app 2010 compatible.  

Thanks.
0
Comment
Question by:Petermcg001
  • 3
  • 2
5 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
the best thing you can do is not reference Office but an external third party like http://www.aspose.com/.net/word-component.aspx to create documents
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
0
 
LVL 1

Author Comment

by:Petermcg001
Comment Utility
Hello,

Thanks for looking at this.

I actually used the MS example as the basis of my code so I'm not sure what to change in the references.
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
Sorry, in my second comment, I meant to use Late Binding. This way, you remove every reference to Office.

Check "Create an Automation Client That Uses Late Binding" from http://support.microsoft.com/kb/304661
0
 
LVL 1

Author Closing Comment

by:Petermcg001
Comment Utility
Hi,

That works fine

Thank you so much!

Peter
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now