Solved

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

Posted on 2008-06-13
1
388 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

948 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

21 Experts available now in Live!

Get 1:1 Help Now