views:

152

answers:

1

Hi there,

I just wanted to know something. I've successfully completed a WinForms app with MS Word integration - the app writes to mergefields in a Word Template. I did the template using MS Word 2007, but saved it in compatible mode as a 97-2003 '.dot' file. Due to the fact that I have Office 2007 installed, I'm using version 12.0 of the MS Word Object Library PIA. If I were to deploy this app, would another person using Office XP or 2003 be able to use it, hence my asking about compatibility?

I have copied the PIA DLLs to the output directory of the application.

+1  A: 

You can use apps compiled with older PIAs to automate Word 2007, but you cannot use apps compiled with the Office 2007 PIAs to automate earlier versions of Word.

Some things may work, but in general it is not supported.

The issue is, the newer versions of Word have new features, and the newer PIAs support those new features. You can easily build an app that exploits the new features in the newer PIAs. When you run that app against an older version of Word - who knows what wll happen.

It isn't only new "external" features you need to worry about. There could be new implementations in the PIAs that are compatible only with the newer versions of the Office apps.

So, what you are proposing to do is not safe, and not recommended.

You can download other versions of the PIAs.

Cheeso
I thought so. Ive downloaded both the PIAs for Office 2003 and Office XP. I think I should be safe and use the XP PIAs, do u agree?Regarding new features...as stated, the template was saved with the older '.dot' extension and I did not receive any warnings about feature compatibilities, so I hope Im safe on that front. If I had an Office XP machine to test this out, it would help, hence my asking here. Thanks Cheeso!
Shalan