Using Office2007 compatibility pack for Office2003 from .NET

G

Gary McGill

Hi,

I've been trying to use the Office 2007 compatibility pack from within my
..NET application, so that I can open Office 2007 documents in Office 2003.

I first checked that I could open documents through the Word, Excel &
PowerPoint user interfaces, and that all worked fine (so the compatibility
pack is installed correctly).

I then checked that I could open documents using VBA from within Word, Excel
& PowerPoint, and that worked too. I was able to use
Documents.Open(filename) as before, and did not have to pass any special
parameters, etc.

However, when I tried the equivalent Open calls from my .NET application
(which uses the Office2003 PIA), it did NOT work. Specifically, each
application failed to recognize the file format. Word opened the document as
text, and Excel & PowerPoint simply refused to open it.

I was eventually able to get Word to work, by passing the ID of the Word
2007 file converter as a parameter to the Open call. However, I do not
appear to have any such option in Excel & PowerPoint. (Excel has a
FileConverters property like Word does, but it's empty; PowerPoint has no
such collection).

Does anyone know if it's possible to open Office 2007 documents in Excel &
PowerPoint 2003 from .NET code? Is there another way of doing it that I've
missed?

Thanks,
Gary
 

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