We’ve created an VSTO 2010 project, containing a ribbon bar for Excel, which runs nicely, however it now turns out some of our customers will be running Office 2007.
We’ve attempted to install it on 2007, with no luck (the ribbon is listed as a running add-in, however it doesn’t appear among the ribbon tabs in Excel). I’ve tried following the steps mentioned in this SO question (replacing the 2010 references dlls with 2007 reference dlls), with no success.
Any suggestions that avoid having to create a new 2007 project (which as I understand would involve uninstalling Office 2010 on our development machines, and installing 2007 instead) would be very much appreciated.
Thanks!
Gah. It turned out to be a problem with the schema on the ribbon XML, which we spotted when we’d stripped the ribbon XML down to a single label, to see if it was any of the controls etc in the XML causing the incompatibility.
We were using (quite possibly copied from an example)
but once we changed it to:
the ribbon appeared immediately, which fitted in with the symptoms of the ribbon appearing as a running add-in, but not being visible in Excel itself. As mentioned previously (see this SO post for the details), it was necessary to use the v12 office and interop dlls.