Code for WordXP and Word2003

J

JuanAdventure

Hi everyone,

we have an app written in C# to automate WordXP, pretty complex. On one of
the machines, someone has been trying to make the app work against Word2003,
but it doesn´t work. I haven´t had access to the error yet, so I don´t know
exactly what the message says, but muy questions are...

1. Are there significant differences between WordXP and Word2003?
2. Is the oject model different substantially, or the functions called
differently?
3. Is there a web site where this (possible) differences are documented?

Thanks, from Spain
 
H

Howard Kaikow

Word 2002 and Word 2003 are not very different at the VBA level.

However, there are significant differences between using a .NET language
with Office XP or Office 2003 apps.
The Office XP PIA is different than the better Office 2003 PIA

First thing to do is make sure that you have the latest PIA for each version
of Office, then grind it out..
 
C

Chris Shelley

I'm guessing that when you compiled your application you had the Word9 com
object referenced and not the Word11 object referenced. Removed the earlier
object and use the Word11 object (I don't think any code changes should be
necessary) and recompile your application. Hopefully this should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top