Hweidi

I created word add-in using .Net 2005 and it had been installed and worked successfully on office 2007.

How can I create Word 2007 add-In that can be installed and worked successfully on office 2007 and all other older office versions

Please help me.

Many thanks.




Re: Visual Studio Tools for Office .Net Word 2007 Add-In could no be installed on Office 2003

Andrew Cherry [MSFT]

Hi Hweidi -

Unfortunately, you need to work in the opposite direction. You can, with some exceptions, create an add-in that runs on Office 2003 that will then also work on Office 2007. Unfortunately, due to references and dependencies, you can't run a newer add-in on an older version of Office. Office applications do their best to be backwards compatible, so that old versions of add-ins continue to work, but it's next to impossible to be forward compatible.

The majority of the code you've already written should, hopefully, be able to transition directly to a Word 2003 add-in.

Good luck,

Andrew






Re: Visual Studio Tools for Office .Net Word 2007 Add-In could no be installed on Office 2003

Hweidi

Thank you Andrew,

But I have Office 2007 installed and I installed the Office 2003 PIA; I want to add the Word 2003 reference (Microsoft.Office.Interop.Word.dll 11.0) to build my project on the word 2003 object library without install office 2003, but it couldn't be found on the com library!

Another thing, I built my Add-In project before on another computer that has office 2003 SP2 after changing the office references. then the Add-In installed successfully on that computer, but I tried to install it on another computer that has the same office (2003 SP2) with different version but it couldn't be installed!!!

do you have any idea

Please help...

Thank you.






Re: Visual Studio Tools for Office .Net Word 2007 Add-In could no be installed on Office 2003

Andrew Cherry [MSFT]

Hi Hweidi -

I'm not entirely sure that installing the PIAs would put in all the COM registration required for the entries to show up in the COM dialog. In particular, if Word 2007 detects errors in its registration, it will repair them on boot -- including every time you debug.

You're going to have a far more successful, and far simpler, time if you start from a machine with Office 2003 installed. You apparently at least have some access due to the attempts at building on another machine.

One solution that SHOULD work, even if I wouldn't recommend it as common practice, is to edit your .csproj or .vbproj directly, and change the references that way.

As to your "other thing": While the registration settings are different, and Office 2003 and an Office 2007 add-in have few enough differences outside the big changes (Ribbon Extensibility, Custom Task Panes, etc.) that the same basic code should work for each, so recompiling on an Office 2003 SP2 machine should work in a large number of cases.

I don't understand, however, what you mean by "with different version." Was it the version of the add-in created on your Office 2003 SP2 machine, or on your Office 2007 machine Where was the setup created

"Couldn't be installed" is a bit of a large error; especially with Office 2003, did your setup chain the .Net Framework, the PIA redistributable package, and the VSTO SE runtime Any one of those pieces missing or unavailable could have caused the install to fail before it reached your package.

Andrew






Re: Visual Studio Tools for Office .Net Word 2007 Add-In could no be installed on Office 2003

Hweidi

I meant the Office 2003 SP2 version is different. simply, I installed my Add-In on a machine that has an Office 2003 SP2 (Ver. 11.8125.8122) and the setup was created on a machine that has an Office 2003 SP2 (but different version number).

Could this caused the problem

How can I know the answers for your questions (did your setup chain the .Net Framework, the PIA redistributable package, and the VSTO SE runtime )

The main problem is that I built the Add-In on a machine (machine 1) then I installed the Add-In setup on a different machine (machine 2), and note the following points:

  • The two machines have the same windows (XP).
  • The two machines have the same Office (Office 2003 SP2)
  • The Office 2003 version is differ from machine 1 to machine 2 (just the Office version numbers are different)
  • The .Net Framework 2.0 is installed on machine 2 (same as machine 1)

Appreciate your cooperation and your help Smile

Hweidi Ibdah