Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-06-13
1
Medium Priority
?
399 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
[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
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

610 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