I have a VS2005 windows application that programs and launches MS Word within the code. I have Office 2003 installed on my development machine. On the development machine I have the Office 11 (2003) assemblies referenced and it works okay. I've downloaded and referenced the Office 10 (2002) PIA's (which replaced the Office 11 references in code) and it works okay. But, now with Office 2007 I'm having trouble.
I have an Office 2007 Trial version installed on a test machine. I've also downloaded and installed the Office 12 PIA's (o2007pia.msi) and installed these on the test machine. I did not remove references to Office 11 in code or I get errors. When I run the application on the developement machine a box came up saying it was configuring Office 2007 but then got an error "Interface not registered (Exception from HRESULT: 0x80040155) ... System.Runtime.InteropServices.COMExecption ..."
I guess my questions are: 1) how do I register the PIA's on the development machine? 2) do I need a purchased copy of Office 2007 before it will work? 3) do I need to install Office 2007 on my development machine and then reference the Office 12 assemblies like I do with Office 11?
Thanks for your help!