Solved

Changing Word references in VB.net project

Posted on 2013-06-20
5
713 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39263330
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 70

Expert Comment

by:Éric Moreau
ID: 39263334
0
 
LVL 1

Author Comment

by:Petermcg001
ID: 39265779
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 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39265830
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
ID: 39265965
Hi,

That works fine

Thank you so much!

Peter
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual C# Windows Project - Clone Form 4 39
Import a excel sheet in a grid 2 45
Background worker passing messagebox yes no 13 26
AD Computer Objects in VB .Net 2 16
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

734 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