Link to home
Start Free TrialLog in
Avatar of Petermcg001
Petermcg001Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Changing Word references in VB.net project

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.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

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
Avatar of Petermcg001

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

That works fine

Thank you so much!

Peter