Solved

How can I achieve backward compatibility with Word 12.0 Object library?

Posted on 2008-06-13
1
392 Views
Last Modified: 2013-11-26
I am writing a program in Visual Studio 2005 (VB.NET), which will need to open a Word Document and modify it. I link Word 12.0 Object library. Backward compatibility goes right until Word XP (2002) where i get the next error :
"Attempted to read or write protected memory".
Would you know how I could achieve backward compatibility with Word XP? thanks in advance
0
Comment
Question by:dannymc2kes
1 Comment
 

Accepted Solution

by:
dannymc2kes earned 0 total points
ID: 21779180
I think I've solved through late binding.
thanks




Dim oApp As Object
Dim wDoc As Object
 
Try
    oApp = CreateObject("Word.Application")
    wDoc = oApp.Documents.Open(Path)
...

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to remove duplicate code from my project 5 49
How to repeat the data 4 30
VB.NET - Refactor Class per SOLID principles 2 33
Upgrade code from VS 2010 to VS 2015 7 33
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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