Hi Andy.
To expand on Cindy's response, there are two main types of projects you can create by using different versions of VSTO:
- Document-level customizations, in which your code is associated with a single document/workbook.
- Application-level add-ins, in which your code is associated with the application itself.
VSTO 2005 provided support for document-level customizations for Word 2003 and Excel 2003. These projects are available if in the New Project dialog if you click the "Office" node. VSTO 2005 provides a design-time view of the document or workbook in Visual Studio when you use these projects.
VSTO 2005 SE provides support for add-ins for many Office 2003 and Office 2007 applications, but this release does not provide any additional support for document-level customizations. The new add-in projects are available in the New Project dialog if you expand the "Office" node and then click "2007". Note that these projects do not provide you with a design-time view of the application in Visual Studio; instead, all of your work is done in code.
If you want to create custom task panes or Ribbon customizations for Excel 2007 by using VSTO 2005 SE, then you want to create an add-in by using the "Excel Add-in" project that is available in the New Project dialog if you expand the "Office" node and then click "2007". As Cindy noted, the VSTO 2005 SE Beta includes a tutorial document that will get you started with creating custom task panes and Ribbon customizations in add-in projects.
You should only get the error you quoted in your original post if you try to create a document-level customization without having Word 2003 or Excel 2003 installed on the development computer. If you are getting this error when creating an add-in for Excel 2007, and you have Excel 2007 installed on the development computer, then this sounds like a bug. Please let us know if that is indeed the case.
If what you really want is to create a document-level customization for Excel 2007, then you will have to wait for an upcoming Orcas CTP. VSTO 2005 SE does not provide any support for document-level customizations, and VSTO 2005 only supports document-level customizations for Excel 2003 and Word 2003.
I hope this helps,
McLean Schofield
This posting is provided "AS IS" with no warranties, and confers no rights. |