Word XP and 2003 Documents.open with c#

J

Jean Paul Gevaert

I wrote a c# program that opens a .doc file with documents.open. The program has to run on pc with Office 2002 or Office 2003

Office 2003 is installed on the developpers PC, I also Installed the word XP pia. When I want to set references I can find thos for Excel Xp and Excel 2003, but for word I only find the 2003 versio

1) Can somebody tell me how I have to add the refference to word xp
2) What do I have to do to let my program open documents wit the word version tha is installed on the system (XP or 2003

Jean Pau
 
E

Eric Lawrence [MSFT]

If all you want to do is open a document, why not just call Process.start?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

Jean Paul Gevaert said:
I wrote a c# program that opens a .doc file with documents.open. The
program has to run on pc with Office 2002 or Office 2003.
Office 2003 is installed on the developpers PC, I also Installed the word
XP pia. When I want to set references I can find thos for Excel Xp and Excel
2003, but for word I only find the 2003 version
1) Can somebody tell me how I have to add the refference to word xp?
2) What do I have to do to let my program open documents wit the word
version tha is installed on the system (XP or 2003)
 
J

Jean Paul Gevaert

I have too change the attachedtemplate of the word docs.
The problem is the incompatibility between word XP and Word 2OO3.

What I did was change documents.open to Documents.open2002 and everything was working. The reference to the word 10 dll is not necessary.

So my problem is resolved

Jean Paul
 

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