Solved

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

Posted on 2008-06-13
1
386 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…
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.
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…

762 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

12 Experts available now in Live!

Get 1:1 Help Now